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 | int windowWidth(const QPixmap &pixmap) const; | 55 | int windowWidth(const QPixmap &pixmap) const; | ||
57 | 56 | | |||
58 | public slots: | 57 | public slots: | ||
59 | 58 | | |||
60 | void setScreenshotAndShow(const QPixmap &pixmap); | 59 | void setScreenshotAndShow(const QPixmap &pixmap); | ||
61 | void setScreenshotWindowTitle(QUrl location); | 60 | void setScreenshotWindowTitle(QUrl location); | ||
62 | 61 | | |||
63 | signals: | 62 | signals: | ||
Show All 13 Lines | |||||
77 | QToolButton *mConfigureButton; | 76 | QToolButton *mConfigureButton; | ||
78 | QPushButton *mToolsButton; | 77 | QPushButton *mToolsButton; | ||
79 | QPushButton *mSendToButton; | 78 | QPushButton *mSendToButton; | ||
80 | QToolButton *mClipboardButton; | 79 | QToolButton *mClipboardButton; | ||
81 | QToolButton *mSaveButton; | 80 | QToolButton *mSaveButton; | ||
82 | QMenu *mSaveMenu; | 81 | QMenu *mSaveMenu; | ||
83 | KMessageWidget *mMessageWidget; | 82 | KMessageWidget *mMessageWidget; | ||
84 | QMenu *mToolsMenu; | 83 | QMenu *mToolsMenu; | ||
85 | ExportMenu *mExportMenu; | 84 | ExportMenu *mExportMenu; | ||
rkflx: Why are you transforming this into a member variable instead of keeping it a local variable? | |||||
86 | bool mOnClickAvailable; | 85 | bool mOnClickAvailable; | ||
87 | }; | 86 | }; | ||
88 | 87 | | |||
89 | #endif // KSMAINWINDOW_H | 88 | #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.