class CShowRolesModalGui
: public QDialog{
Q_OBJECT
public:
CShowRolesModalGui
(const QStringList
& items,
QWidget* parent
);
private slots:
void Close () { done(0); }
};
class CShowRolesModalGui : public QDialog
{
Q_OBJECT
public:
CShowRolesModalGui(const QStringList& items, QWidget* parent);
private slots:
void Close () { done(0); }
};
To copy to clipboard, switch view to plain text mode
CShowRolesModalGui
::CShowRolesModalGui(const QStringList
& items,
QWidget* parent
) : QDialog(parent
){
setFixedSize(400, 300);
setStyleSheet(ROLES_WIDGET_STYLE);
setWindowFlags(Qt::FramelessWindowHint);
listView->setGeometry(2, 2, 396, 260);
listView->setStyleSheet(LIST_SHOW_ROLE_STYLE);
listView->addItems(items);
btn->setGeometry(175, 265, 50, 30);
btn->setStyleSheet(FREQ_MODAL_BTN_STYLE);
connect(btn, SIGNAL(clicked()), this, SLOT(Close()));
}
CShowRolesModalGui::CShowRolesModalGui(const QStringList& items, QWidget* parent) : QDialog(parent)
{
setGeometry(QRect(QPoint(205, 430), QSize(400, 300)));
setFixedSize(400, 300);
setStyleSheet(ROLES_WIDGET_STYLE);
setWindowFlags(Qt::FramelessWindowHint);
QListWidget* listView = new QListWidget(this);
listView->setGeometry(2, 2, 396, 260);
listView->setStyleSheet(LIST_SHOW_ROLE_STYLE);
listView->addItems(items);
QPushButton* btn = new QPushButton(tr("Ok"), this);
btn->setGeometry(175, 265, 50, 30);
btn->setStyleSheet(FREQ_MODAL_BTN_STYLE);
connect(btn, SIGNAL(clicked()), this, SLOT(Close()));
}
To copy to clipboard, switch view to plain text mode
Bookmarks