mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
72 lines
1.2 KiB
C++
72 lines
1.2 KiB
C++
/* This file is part of the KDE project
|
|
Copyright (C) 2002 Holger Freyther <freyther@yahoo.com>
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public
|
|
License as published by the Free Software Foundation; version 2
|
|
of the License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; see the file COPYING. If not, write to
|
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef IMAGEVISUALIZER_H
|
|
#define IMAGEVISUALIZER_H
|
|
|
|
|
|
//Added by qt3to4:
|
|
#include <QPixmap>
|
|
#include <QLabel>
|
|
#include <kvbox.h>
|
|
|
|
class QPixmap;
|
|
class QLabel;
|
|
class KUrl;
|
|
|
|
class ImageVisualizer : public KVBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ImageVisualizer(QWidget *parent, const KUrl & );
|
|
|
|
private:
|
|
void loadImage( const QString& path );
|
|
|
|
private slots:
|
|
void downloadImage( const QString& url );
|
|
|
|
private:
|
|
QLabel *pic;
|
|
QLabel *description;
|
|
};
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|