Add local history for last screenshots

This commit is contained in:
Yuriy Puchkov
2020-07-21 17:06:04 +03:00
parent 415711d975
commit 63e2910b8e
4 changed files with 4 additions and 9 deletions

View File

@@ -19,7 +19,6 @@
#include "src/core/controller.h"
#include "src/widgets/historywidget.h"
#include <qt_windows.h>
#include <QDebug>
GlobalShortcutFilter::GlobalShortcutFilter(QObject *parent) :
QObject(parent)
@@ -51,7 +50,6 @@ bool GlobalShortcutFilter::nativeEventFilter(
// Show screenshots history
if(VK_SNAPSHOT == keycode && MOD_SHIFT == modifiers) {
qDebug() << "Show screenshots history";
HistoryWidget *pHistory = new HistoryWidget();
pHistory->show();
}

View File

@@ -2,8 +2,6 @@
#include "src/utils/confighandler.h"
#include <QDir>
#include <QFile>
#include <QString>
#include <QPixmap>
#include <QDebug>

View File

@@ -1,16 +1,14 @@
#ifndef HISTORY_H
#define HISTORY_H
#include <QList>
#define HISTORY_MAX_SIZE 10
#define HISTORY_THUNB_SCALE 1.5
#define HISTORY_THUNB_WIDTH 160*HISTORY_THUNB_SCALE
#define HISTORY_THUNB_HEIGH 90*HISTORY_THUNB_SCALE
class QPixmap;
class QString;
#include <QList>
#include <QString>
#include <QPixmap>
class History

View File

@@ -17,6 +17,7 @@
#include <QDesktopWidget>
#include <QDesktopServices>
#include <QClipboard>
#include <QUrl>
HistoryWidget::HistoryWidget(QWidget *parent) : QDialog(parent)