Commit 8c2eaf2c authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: nameLabel: remove old school padding

Padding using spaces was resulting in extra spaces when copying to
clipboard
parent 5eec3bed
...@@ -459,6 +459,8 @@ inline void MainInterface::createStatusBar() ...@@ -459,6 +459,8 @@ inline void MainInterface::createStatusBar()
"QLabel:hover { background-color: rgba(255, 255, 255, 50%) }" ); "QLabel:hover { background-color: rgba(255, 255, 255, 50%) }" );
speedLabel->setStyleSheet( speedLabel->setStyleSheet(
"QLabel:hover { background-color: rgba(255, 255, 255, 50%) }" ); "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 */ /* and adding those */
statusBarr->addWidget( nameLabel, 8 ); statusBarr->addWidget( nameLabel, 8 );
...@@ -873,8 +875,8 @@ void MainInterface::setName( const QString& name ) ...@@ -873,8 +875,8 @@ void MainInterface::setName( const QString& name )
input_name = name; /* store it for the QSystray use */ 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 /* Display it in the status bar, but also as a Tooltip in case it doesn't
fit in the label */ fit in the label */
nameLabel->setText( " " + name + " " ); nameLabel->setText( name );
nameLabel->setToolTip( " " + name +" " ); nameLabel->setToolTip( name );
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment