Limo
A simple mod manager
Loading...
Searching...
No Matches
addautotagdialog.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QDialog>
9
10
11namespace Ui
12{
13class AddAutoTagDialog;
14}
15
19class AddAutoTagDialog : public QDialog
20{
21 Q_OBJECT
22
23public:
29 explicit AddAutoTagDialog(const QStringList& existing_tags, QWidget* parent = nullptr);
36 AddAutoTagDialog(QStringList existing_tags, const QString& tag_name, QWidget* parent = nullptr);
39
44 QString getName() const;
45
46private:
48 Ui::AddAutoTagDialog* ui;
49
50private slots:
52 void onTagNameEdited();
53};
QString getName() const
Resturns the name entered in the ui.
Definition addautotagdialog.cpp:38
void onTagNameEdited()
Updates the OK button to only be enabled when a unique name has been entered.
Definition addautotagdialog.cpp:43
Ui::AddAutoTagDialog * ui
Auto generated ui elements.
Definition addautotagdialog.h:48
~AddAutoTagDialog()
Deletes the ui.
Definition addautotagdialog.cpp:33
AddAutoTagDialog(const QStringList &existing_tags, QWidget *parent=nullptr)
Initializes the ui for adding a new auto tag.
Definition addautotagdialog.cpp:6