Limo
A simple mod manager
Loading...
Searching...
No Matches
AddAutoTagDialog Class Reference

Dialog for adding a new auto tag or renaming an existing one. More...

#include <addautotagdialog.h>

Inheritance diagram for AddAutoTagDialog:
Collaboration diagram for AddAutoTagDialog:

Public Member Functions

 AddAutoTagDialog (const QStringList &existing_tags, QWidget *parent=nullptr)
 Initializes the ui for adding a new auto tag.
 
 AddAutoTagDialog (QStringList existing_tags, const QString &tag_name, QWidget *parent=nullptr)
 Initializes the ui for renaming an existing auto tag.
 
 ~AddAutoTagDialog ()
 Deletes the ui.
 
QString getName () const
 Resturns the name entered in the ui.
 

Private Slots

void onTagNameEdited ()
 Updates the OK button to only be enabled when a unique name has been entered.
 

Private Attributes

Ui::AddAutoTagDialog * ui
 Auto generated ui elements.
 

Detailed Description

Dialog for adding a new auto tag or renaming an existing one.

Constructor & Destructor Documentation

◆ AddAutoTagDialog() [1/2]

AddAutoTagDialog::AddAutoTagDialog ( const QStringList & existing_tags,
QWidget * parent = nullptr )
explicit

Initializes the ui for adding a new auto tag.

Parameters
existing_tagsContains names of all currently existing auto tags.
parentParent of this widget.

◆ AddAutoTagDialog() [2/2]

AddAutoTagDialog::AddAutoTagDialog ( QStringList existing_tags,
const QString & tag_name,
QWidget * parent = nullptr )

Initializes the ui for renaming an existing auto tag.

Parameters
existing_tagsContains names of all currently existing auto tags.
tag_nameName of the tag to be renamed.
parentParent of this widget.

Member Function Documentation

◆ getName()

QString AddAutoTagDialog::getName ( ) const

Resturns the name entered in the ui.

Returns
The name.

The documentation for this class was generated from the following files: