1 #ifndef DIALOG_WITH_ITEMLIST_H 2 #define DIALOG_WITH_ITEMLIST_H 7 #include <QAbstractButton> 8 #include <unordered_set> 10 #include "ui_dialog_with_itemlist.h" 20 Ui::DialogWithItemList *
ui;
24 std::unordered_set<std::string> list) :
28 QStringList name_list;
31 name_list.push_back(
name.c_str() );
35 this->setWindowTitle(title);
36 ui->label->setText(text);
37 ui->listWidget->addItems(name_list);
38 ui->listWidget->sortItems();
45 static void warning(
const QString& message, std::unordered_set<std::string> list)
49 dialog->deleteLater();
59 #endif // DIALOG_WITH_ITEMLIST_H Ui::DialogWithItemList * ui
void on_buttonBox_clicked(QAbstractButton *button)
static void warning(const QString &message, std::unordered_set< std::string > list)
DialogWithItemList(QWidget *parent, QString title, QString text, std::unordered_set< std::string > list)