📄 pictureviewer.h
字号:
/************************************************************************************************************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 ¤t, 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -