Skip to content

Commit 8617143

Browse files
committed
Hide borders from status bar items under Windows
These aren't required and just clutter the interface.
1 parent dbed468 commit 8617143

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/app/composer/qgscomposer.cpp

100755100644
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
455455
mStatusCompositionLabel->setMinimumWidth( 350 );
456456
mStatusAtlasLabel = new QLabel( mStatusBar );
457457

458+
//hide borders from child items in status bar under Windows
459+
mStatusBar->setStyleSheet( "QStatusBar::item {border: none;}" );
460+
458461
mStatusBar->addWidget( mStatusCursorXLabel );
459462
mStatusBar->addWidget( mStatusCursorYLabel );
460463
mStatusBar->addWidget( mStatusCursorPageLabel );

src/app/qgisapp.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,10 +1668,11 @@ void QgisApp::createToolBars()
16681668

16691669
void QgisApp::createStatusBar()
16701670
{
1671-
//
1671+
//remove borders from children under Windows
1672+
statusBar()->setStyleSheet( "QStatusBar::item {border: none;}" );
1673+
16721674
// Add a panel to the status bar for the scale, coords and progress
16731675
// And also rendering suppression checkbox
1674-
//
16751676
mProgressBar = new QProgressBar( statusBar() );
16761677
mProgressBar->setObjectName( "mProgressBar" );
16771678
mProgressBar->setMaximumWidth( 100 );

0 commit comments

Comments
 (0)