Work on authentication design.

This commit is contained in:
Martin Rotter 2014-01-31 09:41:19 +01:00
parent bf12b1c6ce
commit 609a0c81b1
5 changed files with 11 additions and 3 deletions

View File

@ -17,7 +17,7 @@
</size>
</property>
<property name="windowTitle">
<string/>
<string notr="true"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>

View File

@ -243,6 +243,10 @@ void FormStandardFeedDetails::initialize() {
m_ui = new Ui::FormStandardFeedDetails();
m_ui->setupUi(this);
// Add button for fetching feed data from internet.
m_btnLoadDataFromInternet = m_ui->m_buttonBox->addButton(tr("Auto-fetch feed metadata"),
QDialogButtonBox::HelpRole);
// Set flags and attributes.
setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog);
setWindowIcon(IconThemeFactory::instance()->fromTheme("document-new"));

View File

@ -71,6 +71,7 @@ class FormStandardFeedDetails : public QDialog {
QAction *m_actionLoadIconFromFile;
QAction *m_actionUseDefaultIcon;
QAction *m_actionNoIcon;
QPushButton *m_btnLoadDataFromInternet;
};
#endif // FORMSTANDARDFEEDDETAILS_H

View File

@ -7,11 +7,11 @@
<x>0</x>
<y>0</y>
<width>375</width>
<height>337</height>
<height>360</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string notr="true"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>

View File

@ -48,6 +48,9 @@ QIcon MessageBox::iconForRole(QDialogButtonBox::StandardButton button) {
case QMessageBox::NoToAll:
return IconThemeFactory::instance()->fromTheme("dialog-no");
case QMessageBox::Help:
return IconThemeFactory::instance()->fromTheme("dialog-information");
default:
return QIcon();
}