pictureviewer.h

来自「基于Qt技术的图片浏览器」· C头文件 代码 · 共 44 行

H
44
字号
/************************************************************************************************************Copyright(C) 2008 Hailing Zhao.This widget may be used under the terms of the GNU General Public License versions 3.0 as published by the Free Software Foundation and appearing in the file LICENSE.GPL included in the packaging of this file. Please review the following information to ensure GNU General Public Licensing requirements will be met: <http://www.gnu.org/licenses/>.**************************************************************************************************************/#ifndef PICTUREVIEWER_H#define PICTUREVIEWER_H#include <QtGui/QWidget>#include "ui_pictureviewer.h"#include "picturelistmodel.h"#include <QLabel>#include <QEvent>class PictureViewer : public QWidget, public Ui::PictureViewerClass{    Q_OBJECTpublic:    PictureViewer(QWidget *parent = 0);    ~PictureViewer();protected:	virtual bool eventFilter(QObject * watched, QEvent * event);private slots:    void listItemChanged(const QModelIndex &current, const QModelIndex &previous);    void on_toolButtonPre_clicked();    void on_toolButtonNext_clicked();    void on_toolButtonGo_clicked();private:    PictureListModel *listModel;    QLabel* label;    void showPicture(const QModelIndex &index);};#endif // PICTUREVIEWER_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?