Start using #pragma once

This commit is contained in:
lupoDharkael
2018-01-22 20:08:21 +01:00
parent 8e777f4ac3
commit e1bc6ba9c6
58 changed files with 58 additions and 234 deletions

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef CAPTURECHANGE_H
#define CAPTURECHANGE_H
#pragma once
#include "src/capture/widget/capturebutton.h"
#include <QObject>
@@ -51,5 +50,3 @@ protected:
int m_thickness;
};
#endif // CAPTURECHANGE_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef SCREENSHOT_H
#define SCREENSHOT_H
#pragma once
#include <QPixmap>
#include <QRect>
@@ -49,5 +48,3 @@ private:
void paintInPainter(QPainter &, const CaptureModification *);
};
#endif // SCREENSHOT_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef APPOPENER_H
#define APPOPENER_H
#pragma once
#include "capturetool.h"
@@ -42,5 +41,3 @@ public:
void onPressed() override;
};
#endif // APPOPENER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef ARROWTOOL_H
#define ARROWTOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // ARROWTOOL_H

View File

@@ -15,9 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef BLURTOOL_H
#define BLURTOOL_H
#pragma once
#include "capturetool.h"
@@ -47,5 +45,3 @@ private:
bool needsAdjustment(const QPoint &p0, const QPoint &p1) const;
};
#endif // BLURTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef CAPTURETOOL_H
#define CAPTURETOOL_H
#pragma once
#include <QObject>
#include <QVector>
@@ -71,5 +70,3 @@ public slots:
virtual void onPressed() = 0;
};
#endif // CAPTURETOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef CIRCLETOOL_H
#define CIRCLETOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // CIRCLETOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef COPYTOOL_H
#define COPYTOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // COPYTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef EXITTOOL_H
#define EXITTOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // EXITTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef IMGURUPLOADERTOOL_H
#define IMGURUPLOADERTOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // IMGURUPLOADERTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef LINETOOL_H
#define LINETOOL_H
#pragma once
#include "capturetool.h"
@@ -46,5 +45,3 @@ private:
bool needsAdjustment(const QPoint &p0, const QPoint &p1) const;
};
#endif // LINETOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef MARKERTOOL_H
#define MARKERTOOL_H
#pragma once
#include "capturetool.h"
@@ -46,5 +45,3 @@ private:
bool needsAdjustment(const QPoint &p0, const QPoint &p1) const;
};
#endif // MARKERTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef MOVETOOL_H
#define MOVETOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // MOVETOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef PENCILTOOL_H
#define PENCILTOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // PENCILTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef RECTANGLELTOOL_H
#define RECTANGLELTOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // RECTANGLELTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef SAVETOOL_H
#define SAVETOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // SAVETOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef SELECTIONTOOL_H
#define SELECTIONTOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // SELECTIONTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef SIZEINDICATORTOOL_H
#define SIZEINDICATORTOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // SIZEINDICATORTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef TOOLFACTORY_H
#define TOOLFACTORY_H
#pragma once
#include <QObject>
#include "src/capture/widget/capturebutton.h"
@@ -43,5 +42,3 @@ public:
QObject *parent = nullptr);
};
#endif // TOOLFACTORY_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef UNDOTOOL_H
#define UNDOTOOL_H
#pragma once
#include "capturetool.h"
@@ -43,5 +42,3 @@ public:
void onPressed() override;
};
#endif // UNDOTOOL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef BUTTONHANDLER_H
#define BUTTONHANDLER_H
#pragma once
#include "capturebutton.h"
#include <QVector>
@@ -86,5 +85,3 @@ private:
void adjustHorizontalCenter(QPoint &center);
};
#endif // BUTTONHANDLER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef BUTTON_H
#define BUTTON_H
#pragma once
#include <QPushButton>
#include <QMap>
@@ -92,5 +91,3 @@ private:
void updateIcon();
};
#endif // BUTTON_H

View File

@@ -21,8 +21,7 @@
// Based on KDE's KSnapshot regiongrabber.cpp, revision 796531, Copyright 2007 Luca Gugelmann <lucag@student.ethz.ch>
// released under the GNU LGPL <http://www.gnu.org/licenses/old-licenses/library.txt>
#ifndef CAPTUREWIDGET_H
#define CAPTUREWIDGET_H
#pragma once
#include "capturebutton.h"
#include "src/capture/tools/capturetool.h"
@@ -141,5 +140,3 @@ private:
ConfigHandler m_config;
};
#endif // CAPTUREWIDGET_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef COLORPICKER_H
#define COLORPICKER_H
#pragma once
#include <QWidget>
@@ -46,5 +45,3 @@ private:
QColor m_uiColor, m_drawColor;
};
#endif // COLORPICKER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef NOTIFIERBOX_H
#define NOTIFIERBOX_H
#pragma once
#include <QWidget>
@@ -41,5 +40,3 @@ private:
QColor m_bgColor;
QColor m_foregroundColor;
};
#endif // NOTIFIERBOX_H

View File

@@ -18,8 +18,7 @@
// This code is a modified version of the KDE software Spectacle
// /src/Gui/KSImageWidget.h commit cbbd6d45f6426ccbf1a82b15fdf98613ccccbbe9
#ifndef IMAGELABEL_H
#define IMAGELABEL_H
#pragma once
#include <QGuiApplication>
#include <QStyleHints>
@@ -55,5 +54,3 @@ private:
QPoint m_dragStartPosition;
};
#endif // IMAGELABEL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef IMGURUPLOADER_H
#define IMGURUPLOADER_H
#pragma once
#include <QWidget>
#include <QUrl>
@@ -64,5 +63,3 @@ private:
void upload();
void onUploadOk();
};
#endif // IMGURUPLOADER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef LOADSPINNER_H
#define LOADSPINNER_H
#pragma once
#include <QWidget>
@@ -49,5 +48,3 @@ private:
QRect m_frame;
void updateFrame();
};
#endif // LOADSPINNER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef NOTIFICATIONWIDGET_H
#define NOTIFICATIONWIDGET_H
#pragma once
#include <QWidget>
@@ -46,5 +45,3 @@ private:
void animatedHide();
};
#endif // NOTIFICATIONWIDGET_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef APPLAUNCHERWIDGET_H
#define APPLAUNCHERWIDGET_H
#pragma once
#include "src/utils/desktopfileparse.h"
#include <QWidget>
@@ -58,5 +57,3 @@ private:
QListWidget *m_filterList;
QTabWidget *m_tabWidget;
};
#endif // APPLAUNCHERWIDGET_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef LAUNCHERITEMDELEGATE_H
#define LAUNCHERITEMDELEGATE_H
#pragma once
#include "src/utils/desktopfileparse.h"
#include <QStyledItemDelegate>
@@ -36,5 +35,3 @@ public:
private:
};
#endif // LAUNCHERITEMDELEGATE_H

View File

@@ -15,11 +15,8 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef OPENWITHPROGRAM_H
#define OPENWITHPROGRAM_H
#pragma once
#include <QPixmap>
void showOpenWithMenu(const QPixmap &capture);
#endif // OPENWITHPROGRAM_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef TERMINALLAUNCHER_H
#define TERMINALLAUNCHER_H
#pragma once
#include <QObject>
@@ -35,5 +34,3 @@ public:
private:
static TerminalApp getPreferedTerminal();
};
#endif // TERMINALLAUNCHER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef SCREENSHOTSAVER_H
#define SCREENSHOTSAVER_H
#pragma once
class QPixmap;
class QString;
@@ -31,5 +30,3 @@ public:
void saveToFilesystemGUI(const QPixmap &capture);
};
#endif // SCREENSHOTSAVER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef COMMANDARGUMENT_H
#define COMMANDARGUMENT_H
#pragma once
#include <QString>
@@ -41,5 +40,3 @@ private:
QString m_description;
};
#endif // COMMANDARGUMENT_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef COMMANDLINEPARSER_H
#define COMMANDLINEPARSER_H
#pragma once
#include "src/cli/commandargument.h"
#include "src/cli/commandoption.h"
@@ -90,5 +89,3 @@ private:
Node *const actualNode);
};
#endif // COMMANDLINEPARSER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef COMMANDOPTION_H
#define COMMANDOPTION_H
#pragma once
#include <QStringList>
#include <functional>
@@ -64,5 +63,3 @@ private:
QString m_errorMsg;
};
#endif // COMMANDOPTION_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef BUTTONLISTVIEW_H
#define BUTTONLISTVIEW_H
#pragma once
#include "src/capture/widget/capturebutton.h"
#include <QListWidget>
@@ -42,5 +41,3 @@ private:
void updateActiveButtons(QListWidgetItem *);
};
#endif // BUTTONLISTVIEW_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef CLICKABLELABEL_H
#define CLICKABLELABEL_H
#pragma once
#include <QLabel>
@@ -34,5 +33,3 @@ private:
void mousePressEvent (QMouseEvent *);
};
#endif // CLICKABLELABEL_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#pragma once
#include <QTabWidget>
@@ -43,5 +42,3 @@ private:
QFileSystemWatcher *m_configWatcher;
};
#endif // CONFIGURATION_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef EXTENDEDSLIDER_H
#define EXTENDEDSLIDER_H
#pragma once
#include <QSlider>
#include <QTimer>
@@ -41,5 +40,3 @@ private:
QTimer m_timer;
};
#endif // EXTENDEDSLIDER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef FILENAMEEDITOR_H
#define FILENAMEEDITOR_H
#pragma once
#include <QWidget>
#include <QPointer>
@@ -56,5 +55,3 @@ private slots:
void resetName();
};
#endif // FILENAMEEDITOR_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef GENENERALCONF_H
#define GENENERALCONF_H
#pragma once
#include <QWidget>
@@ -58,5 +57,3 @@ private:
void initAutostart();
};
#endif // GENENERALCONF_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef STRFTIMECHOOSERWIDGET_H
#define STRFTIMECHOOSERWIDGET_H
#pragma once
#include <QWidget>
@@ -33,5 +32,3 @@ private:
static QMap<QString, QString> m_buttonData;
};
#endif // STRFTIMECHOOSERWIDGET_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef UICOLORPICKER_H
#define UICOLORPICKER_H
#pragma once
#include "color_wheel.hpp"
#include "src/capture/widget/capturebutton.h"
@@ -58,5 +57,3 @@ private:
void initButtons();
};
#endif // UICOLORPICKER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef VISUALSEDITOR_H
#define VISUALSEDITOR_H
#pragma once
#include <QWidget>
@@ -46,5 +45,3 @@ private:
void initWidgets();
void initOpacitySlider();
};
#endif // VISUALSEDITOR_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef CONTROLLER_H
#define CONTROLLER_H
#pragma once
#include <QObject>
#include <QPointer>
@@ -66,5 +65,3 @@ private:
QPointer<QSystemTrayIcon> m_trayIcon;
};
#endif // CONTROLLER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef FLAMESHOTDBUSADAPTER_H
#define FLAMESHOTDBUSADAPTER_H
#pragma once
#include <QtDBus/QDBusAbstractAdaptor>
#include "src/core/controller.h"
@@ -41,5 +40,3 @@ public slots:
Q_NOREPLY void trayIconEnabled(bool enabled);
};
#endif // FLAMESHOTDBUSADAPTER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef GLOBALSHORTCUTFILTER_H
#define GLOBALSHORTCUTFILTER_H
#pragma once
#include <QObject>
#include <QAbstractNativeEventFilter>
@@ -38,5 +37,3 @@ private:
bool unregisterShortcut(quint32 nativeKey, quint32 nativeMods);
};
#endif // GLOBALSHORTCUTFILTER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef RESOURCEEXPORTER_H
#define RESOURCEEXPORTER_H
#pragma once
#include <QPixmap>
@@ -30,5 +29,3 @@ public:
void captureToImgur(const QPixmap &p);
void captureToProgram(const QPixmap &p);
};
#endif // RESOURCEEXPORTER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef INFOWINDOW_H
#define INFOWINDOW_H
#pragma once
#include <QWidget>
@@ -39,5 +38,3 @@ private:
static QVector<const char *> m_description;
};
#endif // INFOWINDOW_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef CONFIGHANDLER_H
#define CONFIGHANDLER_H
#pragma once
#include "src/capture/widget/capturebutton.h"
#include <QList>
@@ -80,5 +79,3 @@ private:
QList<int> fromButtonToInt(const QList<CaptureButton::ButtonType> &l);
};
#endif // CONFIGHANDLER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef TERMINALUTILS_H
#define TERMINALUTILS_H
#pragma once
#include "src/cli/commandlineparser.h"
#include <QDBusConnection>
@@ -38,5 +37,3 @@ public slots:
private:
uint m_id;
};
#endif // TERMINALUTILS_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef DESKTOPFILEPARSE_H
#define DESKTOPFILEPARSE_H
#pragma once
#include <QIcon>
#include <QStringList>
@@ -71,5 +70,3 @@ private:
QIcon m_defaultIcon;
QList<DesktopAppData> m_appList;
};
#endif // DESKTOPFILEPARSE_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef DESKTOPINFO_H
#define DESKTOPINFO_H
#pragma once
#include <QString>
@@ -44,5 +43,3 @@ private:
QString DESKTOP_SESSION;
};
#endif // DESKTOPINFO_H

View File

@@ -15,12 +15,10 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef FILENAMEHANDLER_H
#define FILENAMEHANDLER_H
#pragma once
#include <QObject>
class FileNameHandler : public QObject
{
Q_OBJECT
@@ -47,5 +45,3 @@ private:
void fixPath(QString &directory, QString &filename);
};
#endif // FILENAMEHANDLER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef SCREENGRABBER_H
#define SCREENGRABBER_H
#pragma once
#include "src/utils/desktopinfo.h"
#include <QObject>
@@ -31,5 +30,3 @@ public:
private:
DesktopInfo m_info;
};
#endif // SCREENGRABBER_H

View File

@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#ifndef SYSTEMNOTIFICATION_H
#define SYSTEMNOTIFICATION_H
#pragma once
#include <QObject>
@@ -36,5 +35,3 @@ private:
QDBusInterface *m_interface;
};
#endif // SYSTEMNOTIFICATION_H