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> </size>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string/> <string notr="true"/>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>

View File

@ -243,6 +243,10 @@ void FormStandardFeedDetails::initialize() {
m_ui = new Ui::FormStandardFeedDetails(); m_ui = new Ui::FormStandardFeedDetails();
m_ui->setupUi(this); 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. // Set flags and attributes.
setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog); setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog);
setWindowIcon(IconThemeFactory::instance()->fromTheme("document-new")); setWindowIcon(IconThemeFactory::instance()->fromTheme("document-new"));

View File

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

View File

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

View File

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