mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-04-04 22:39:10 +00:00
Add local history for last screenshots
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
#include "src/utils/confighandler.h"
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QString>
|
||||
#include <QPixmap>
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <QDesktopWidget>
|
||||
#include <QDesktopServices>
|
||||
#include <QClipboard>
|
||||
#include <QUrl>
|
||||
|
||||
|
||||
HistoryWidget::HistoryWidget(QWidget *parent) : QDialog(parent)
|
||||
|
||||
Reference in New Issue
Block a user