From 7108ff51d73e4e0b38ab2acd139dca90ff4218f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Sun, 17 Jun 2012 19:09:14 +0200 Subject: Style security button. diff --git a/Swift/QtUI/QtRosterHeader.cpp b/Swift/QtUI/QtRosterHeader.cpp index b90d02f..d32a12e 100644 --- a/Swift/QtUI/QtRosterHeader.cpp +++ b/Swift/QtUI/QtRosterHeader.cpp @@ -53,10 +53,10 @@ QtRosterHeader::QtRosterHeader(SettingsProvider* settings, QWidget* parent) : QW nameAndSecurityLayout->addWidget(nameWidget_); securityInfoButton_ = new QToolButton(this); - - securityInfoButton_->setStyleSheet("border: none; hover: {border: 1px} pressed {border: 1px}"); - // TODO: replace with a more appropriate icon + securityInfoButton_->setStyleSheet("QToolButton { border: none; } QToolButton:hover { border: 1px solid #bebebe; } QToolButton:pressed { border: 1px solid #757575; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #777777, stop: 1 #d4d4d4);}"); + //securityInfoButton_->setAutoRaise(true); securityInfoButton_->setIcon(QIcon(":/icons/lock.png")); + securityInfoButton_->setToolTip(tr("Connection is secured")); connect(securityInfoButton_, SIGNAL(clicked()), this, SIGNAL(onShowCertificateInfo())); nameAndSecurityLayout->addWidget(securityInfoButton_); diff --git a/Swift/QtUI/QtRosterHeader.h b/Swift/QtUI/QtRosterHeader.h index 1132ee3..9527cf4 100644 --- a/Swift/QtUI/QtRosterHeader.h +++ b/Swift/QtUI/QtRosterHeader.h @@ -10,7 +10,6 @@ #include <QLabel> #include <QPixmap> #include <QSize> -#include <QToolBar> #include <QToolButton> #include <string> @@ -51,7 +50,6 @@ namespace Swift { QtClickableLabel* avatarLabel_; QtNameWidget* nameWidget_; QtTextEdit* statusEdit_; - QToolBar* toolBar_; QtStatusWidget* statusWidget_; QToolButton* securityInfoButton_; static const int avatarSize_; -- cgit v0.10.2-6-g49f6