Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/krcalcspacedialog.h
Show All 33 Lines | |||||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | public: | 36 | public: | ||
37 | /** | 37 | /** | ||
38 | * Create and show a dialog. If delayed is true the dialog is shown with a delay of 2 seconds | 38 | * Create and show a dialog. If delayed is true the dialog is shown with a delay of 2 seconds | ||
39 | * to avoid a short appearance and is autoclosed when the calculation finished. | 39 | * to avoid a short appearance and is autoclosed when the calculation finished. | ||
40 | */ | 40 | */ | ||
41 | static void showDialog(QWidget *parent, SizeCalculator *calculator); | 41 | static void showDialog(QWidget *parent, SizeCalculator *calculator); | ||
42 | void closeEvent(QCloseEvent *) Q_DECL_OVERRIDE; | 42 | void closeEvent(QCloseEvent *) override; | ||
43 | void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE; | 43 | void keyPressEvent(QKeyEvent *e) override; | ||
44 | 44 | | |||
45 | private slots: | 45 | private slots: | ||
46 | void slotCancel(); // cancel was pressed | 46 | void slotCancel(); // cancel was pressed | ||
47 | void slotCalculatorFinished(); | 47 | void slotCalculatorFinished(); | ||
48 | void updateResult(); // show the current result in the dialog | 48 | void updateResult(); // show the current result in the dialog | ||
49 | 49 | | |||
50 | private: | 50 | private: | ||
51 | KrCalcSpaceDialog(QWidget *parent, SizeCalculator *calculator); | 51 | KrCalcSpaceDialog(QWidget *parent, SizeCalculator *calculator); | ||
Show All 9 Lines |