feat: Add edit client dialog
This commit is contained in:
37
src/EditClientDialog/EditClientDialog.h
Normal file
37
src/EditClientDialog/EditClientDialog.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef LICENSEMANAGER_EDITCLIENTDIALOG_H
|
||||
#define LICENSEMANAGER_EDITCLIENTDIALOG_H
|
||||
|
||||
// Qt
|
||||
#include <QDebug>
|
||||
#include <QDialog>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QLabel>
|
||||
#include <QMimeData>
|
||||
class QTabWidget;
|
||||
|
||||
// Self
|
||||
class LicenseModel;
|
||||
|
||||
class EditClientDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
EditClientDialog(LicenseModel* model, QWidget *parent = nullptr);
|
||||
~EditClientDialog();
|
||||
|
||||
private slots:
|
||||
void onSaveButtonClicked();
|
||||
void onFilesChanged(const QStringList &paths);
|
||||
private:
|
||||
void loadSettings();
|
||||
void saveSettings();
|
||||
private:
|
||||
LicenseModel* m_model{nullptr};
|
||||
QTabWidget* m_tabWidget{nullptr};
|
||||
QLabel* m_configPathLabel{nullptr};
|
||||
|
||||
QPushButton* m_saveButton{nullptr};
|
||||
QString m_filesPath;
|
||||
};
|
||||
|
||||
#endif //LICENSEMANAGER_EDITCLIENTDIALOG_H
|
||||
Reference in New Issue
Block a user