From 1cafad9ed4cbfc44e1217d258973745d65c5481f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mladen=20Pejakovi=C4=87?= Date: Wed, 8 Jan 2014 16:59:21 +0100 Subject: [PATCH] [Autofill] Thematic changes --- src/lib/autofill/autofillnotification.ui | 2 +- src/lib/autofill/autofillwidget.cpp | 11 ++- src/lib/autofill/autofillwidget.ui | 101 ++++------------------- src/lib/data/icons.qrc | 2 +- src/lib/data/icons/other/keys.png | Bin 2131 -> 0 bytes src/lib/data/icons/other/login.png | Bin 0 -> 1205 bytes 6 files changed, 25 insertions(+), 91 deletions(-) delete mode 100644 src/lib/data/icons/other/keys.png create mode 100644 src/lib/data/icons/other/login.png 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 19e0da92e6c7c3518c458b1f5bb1ac7bbd2ed29a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2131 zcmV-Z2(0&sP)Wp z!3khv#Vi91FkrI`Gt9tj%=Tv9()&FRDZyh3YV)M4dGpPC?>q0FbI-j)$+8UFkGVO! zH4@`b>vcL>r`0b>k~EqU`1_(L2T~~kQmG^ek_bsY0qcGrI2;b3L<*FrP%?hvIe8|X zUdwR2b^5I@&)JQEQO`7Wn~$_WHdt}5f6vL!QNOr{#Qwsui+&L_&*->&IOKD zzbuI&tgI~d`TgsCf+%Qm%sH6x_l6-w*_$B9TZOO!CQWK@`)^qxKBo$yAEekT>A|4lwkU zvNGH2Znx`LFc5l^k4A2WLYr57-qqltL$;3&SgoeYBUSH9g7hnsDMv~rd46emX~^sI z{*I!Un+(msUNV%CONwKA1Hr%xo15W_mO@KQUT%Jm&$o8j;hvqg6qWoe5{(+8(I}Wr zCa6AIqcNLvAlsa+3x$H;cFsFr9=Oy0wkV44QVhL+3bqo+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