[vlc-commits] commit: Qt: nameLabel: remove old school padding (Francois Cartegnie )
git at videolan.org
git at videolan.org
Wed Oct 20 00:01:59 CEST 2010
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct 19 23:59:11 2010 +0200| [8c2eaf2c90c104af5e6abca2cda9c1cf4ade32e3] | committer: Francois Cartegnie
Qt: nameLabel: remove old school padding
Padding using spaces was resulting in extra spaces when copying to
clipboard
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8c2eaf2c90c104af5e6abca2cda9c1cf4ade32e3
---
modules/gui/qt4/main_interface.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index fc14bae..ec9c97e 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -459,6 +459,8 @@ inline void MainInterface::createStatusBar()
"QLabel:hover { background-color: rgba(255, 255, 255, 50%) }" );
speedLabel->setStyleSheet(
"QLabel:hover { background-color: rgba(255, 255, 255, 50%) }" );
+ /* pad both label and its tooltip */
+ nameLabel->setStyleSheet( "padding-left: 5px; padding-right: 5px;" );
/* and adding those */
statusBarr->addWidget( nameLabel, 8 );
@@ -873,8 +875,8 @@ void MainInterface::setName( const QString& name )
input_name = name; /* store it for the QSystray use */
/* Display it in the status bar, but also as a Tooltip in case it doesn't
fit in the label */
- nameLabel->setText( " " + name + " " );
- nameLabel->setToolTip( " " + name +" " );
+ nameLabel->setText( name );
+ nameLabel->setToolTip( name );
}
/**
More information about the vlc-commits
mailing list