diff --git a/src/lib/autofill/autofillnotification.ui b/src/lib/autofill/autofillnotification.ui index 5dc1e0dd2..c68e341ef 100644 --- a/src/lib/autofill/autofillnotification.ui +++ b/src/lib/autofill/autofillnotification.ui @@ -44,7 +44,7 @@ - :/icons/other/keys.png + :/icons/other/login.png diff --git a/src/lib/autofill/autofillwidget.cpp b/src/lib/autofill/autofillwidget.cpp index 2478d3c99..0fa980a38 100644 --- a/src/lib/autofill/autofillwidget.cpp +++ b/src/lib/autofill/autofillwidget.cpp @@ -44,14 +44,13 @@ void AutoFillWidget::setFormData(const QVector &data) } QPushButton* button = new QPushButton(this); - button->setText(tr("Login")); - button->setToolTip(d.username); + button->setIcon(QIcon(":icons/other/login.png")); + button->setStyleSheet("text-align:left;font-weight:bold;"); + button->setText(d.username); button->setProperty("data-index", i); - QLabel* label = new QLabel(this); - label->setText(tr("Login as %1").arg(d.username)); + button->setFlat(true); - ui->gridLayout->addWidget(label, i, 0); - ui->gridLayout->addWidget(button, i, 1); + ui->gridLayout->addWidget(button, i, 0); connect(button, SIGNAL(clicked()), this, SLOT(loginToPage())); } } diff --git a/src/lib/autofill/autofillwidget.ui b/src/lib/autofill/autofillwidget.ui index 8c8c6a7a1..2b23c73f5 100644 --- a/src/lib/autofill/autofillwidget.ui +++ b/src/lib/autofill/autofillwidget.ui @@ -2,91 +2,26 @@ AutoFillWidget - - - 0 - 0 - 211 - 54 - - - - - 0 - - - - - QFrame::NoFrame - - - - 0 - - - - - 0 - - - - - - 0 - 0 - - - - - - - :/icons/other/keys.png - - - - - - - - 0 - 0 - - - - Choose username to login - - - - - - - - - 10 - - - 6 - - - 0 - - - - - + + + + + + + Login as: + + + Qt::AlignCenter + + + + + + + - - - Frame - QFrame -
frame.h
- 1 -
-
- - - +
diff --git a/src/lib/data/icons.qrc b/src/lib/data/icons.qrc index 1d3b0351b..92f489868 100644 --- a/src/lib/data/icons.qrc +++ b/src/lib/data/icons.qrc @@ -33,7 +33,7 @@ icons/locationbar/visit1.png icons/locationbar/visit2.png icons/locationbar/visit3.png - icons/other/keys.png + icons/other/login.png icons/preferences/applications-fonts.png icons/preferences/applications-graphics.png icons/preferences/document-properties.png diff --git a/src/lib/data/icons/other/keys.png b/src/lib/data/icons/other/keys.png deleted file mode 100644 index 19e0da92e..000000000 Binary files a/src/lib/data/icons/other/keys.png and /dev/null differ diff --git a/src/lib/data/icons/other/login.png b/src/lib/data/icons/other/login.png new file mode 100644 index 000000000..a01677f46 Binary files /dev/null and b/src/lib/data/icons/other/login.png differ