Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/KSMainWindow.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 36 | { | |||
---|---|---|---|---|---|
47 | void showPrintDialog(); | 47 | void showPrintDialog(); | ||
48 | void showPreferencesDialog(); | 48 | void showPreferencesDialog(); | ||
49 | void showImageSharedFeedback(bool error, const QString &message); | 49 | void showImageSharedFeedback(bool error, const QString &message); | ||
50 | void sendToClipboard(); | 50 | void sendToClipboard(); | ||
51 | void init(); | 51 | void init(); | ||
52 | void buildSaveMenu(); | 52 | void buildSaveMenu(); | ||
53 | void save(); | 53 | void save(); | ||
54 | void saveAs(); | 54 | void saveAs(); | ||
55 | void saveAndExit(); | | |||
56 | 55 | | |||
57 | public slots: | 56 | public slots: | ||
58 | 57 | | |||
59 | void setScreenshotAndShow(const QPixmap &pixmap); | 58 | void setScreenshotAndShow(const QPixmap &pixmap); | ||
60 | void setScreenshotWindowTitle(QUrl location); | 59 | void setScreenshotWindowTitle(QUrl location); | ||
61 | 60 | | |||
62 | signals: | 61 | signals: | ||
63 | 62 | | |||
Show All 13 Lines | |||||
77 | QPushButton *mToolsButton; | 76 | QPushButton *mToolsButton; | ||
78 | QPushButton *mSendToButton; | 77 | QPushButton *mSendToButton; | ||
79 | QToolButton *mClipboardButton; | 78 | QToolButton *mClipboardButton; | ||
80 | QToolButton *mSaveButton; | 79 | QToolButton *mSaveButton; | ||
81 | QMenu *mSaveMenu; | 80 | QMenu *mSaveMenu; | ||
82 | KMessageWidget *mMessageWidget; | 81 | KMessageWidget *mMessageWidget; | ||
83 | QMenu *mToolsMenu; | 82 | QMenu *mToolsMenu; | ||
84 | ExportMenu *mExportMenu; | 83 | ExportMenu *mExportMenu; | ||
85 | bool mOnClickAvailable; | 84 | bool mOnClickAvailable; | ||
rkflx: Why are you transforming this into a member variable instead of keeping it a local variable? | |||||
86 | }; | 85 | }; | ||
87 | 86 | | |||
88 | #endif // KSMAINWINDOW_H | 87 | #endif // KSMAINWINDOW_H |
Why are you transforming this into a member variable instead of keeping it a local variable? SpectacleConfig::instance() is a static returning only a reference anyway.