Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/executablefileopendialog.cpp
Show All 32 Lines | 32 | { | |||
---|---|---|---|---|---|
33 | QLabel *label = new QLabel(i18n("What do you wish to do with this executable file?"), this); | 33 | QLabel *label = new QLabel(i18n("What do you wish to do with this executable file?"), this); | ||
34 | 34 | | |||
35 | m_dontAskAgain = new QCheckBox(this); | 35 | m_dontAskAgain = new QCheckBox(this); | ||
36 | m_dontAskAgain->setText(i18n("Do not ask again")); | 36 | m_dontAskAgain->setText(i18n("Do not ask again")); | ||
37 | 37 | | |||
38 | QPushButton *openButton = new QPushButton(i18n("&Open"), this); | 38 | QPushButton *openButton = new QPushButton(i18n("&Open"), this); | ||
39 | QPushButton *executeButton = new QPushButton(i18n("&Execute"), this); | 39 | QPushButton *executeButton = new QPushButton(i18n("&Execute"), this); | ||
40 | 40 | | |||
41 | openButton->setIcon(QIcon::fromTheme(QStringLiteral("text-plain"))); | 41 | openButton->setIcon(QIcon::fromTheme(QStringLiteral("document-preview"))); | ||
42 | executeButton->setIcon(QIcon::fromTheme(QStringLiteral("application-x-executable"))); | 42 | executeButton->setIcon(QIcon::fromTheme(QStringLiteral("system-run"))); | ||
43 | 43 | | |||
44 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, this); | 44 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, this); | ||
45 | buttonBox->addButton(openButton, QDialogButtonBox::AcceptRole); | 45 | buttonBox->addButton(openButton, QDialogButtonBox::AcceptRole); | ||
46 | buttonBox->addButton(executeButton, QDialogButtonBox::AcceptRole); | 46 | buttonBox->addButton(executeButton, QDialogButtonBox::AcceptRole); | ||
47 | 47 | | |||
48 | QVBoxLayout *layout = new QVBoxLayout(this); | 48 | QVBoxLayout *layout = new QVBoxLayout(this); | ||
49 | layout->addWidget(label); | 49 | layout->addWidget(label); | ||
50 | layout->addWidget(m_dontAskAgain); | 50 | layout->addWidget(m_dontAskAgain); | ||
Show All 13 Lines |