aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/QuitDialog.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-23 09:10:53 +0000
committerSaturneric <[email protected]>2022-01-23 09:10:53 +0000
commit0dd16d72d75e2068b8365a49ef2696a4744575dd (patch)
treea463727ba5a5ee4d5afcfb0eaa4d8e6e48b7c930 /src/ui/QuitDialog.h
parent<refactor>(ui): tidy up codes and comments. (diff)
downloadGpgFrontend-0dd16d72d75e2068b8365a49ef2696a4744575dd.tar.gz
GpgFrontend-0dd16d72d75e2068b8365a49ef2696a4744575dd.zip
<refactor>(ui): tidy up codes and comments.
1. tidy up ui.
Diffstat (limited to 'src/ui/QuitDialog.h')
-rwxr-xr-xsrc/ui/QuitDialog.h35
1 files changed, 30 insertions, 5 deletions
diff --git a/src/ui/QuitDialog.h b/src/ui/QuitDialog.h
index db441faa..2d09790b 100755
--- a/src/ui/QuitDialog.h
+++ b/src/ui/QuitDialog.h
@@ -33,23 +33,48 @@
namespace GpgFrontend::UI {
+/**
+ * @brief
+ *
+ */
class QuitDialog : public QDialog {
Q_OBJECT
public:
+ /**
+ * @brief Construct a new Quit Dialog object
+ *
+ * @param parent
+ * @param unsavedDocs
+ */
QuitDialog(QWidget* parent, const QHash<int, QString>& unsavedDocs);
- [[nodiscard]] bool isDiscarded() const;
+ /**
+ * @brief
+ *
+ * @return true
+ * @return false
+ */
+ [[nodiscard]] bool IsDiscarded() const;
- QList<int> getTabIdsToSave();
+ /**
+ * @brief Get the Tab Ids To Save object
+ *
+ * @return QList<int>
+ */
+ QList<int> GetTabIdsToSave();
private slots:
- void slotMyDiscard();
+ /**
+ * @brief
+ *
+ */
+ void slot_my_discard();
private:
- bool discarded;
- QTableWidget* mFileList;
+ bool discarded_; ///<
+ QTableWidget* m_fileList_; ///<
};
} // namespace GpgFrontend::UI