-rw-r--r-- | core/launcher/launcherview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index 30afe64..0ced256 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -247,7 +247,7 @@ protected: | |||
247 | QIconView::styleChange( old ); | 247 | QIconView::styleChange( old ); |
248 | //### duplicated code from LauncherView constructor | 248 | //### duplicated code from LauncherView constructor |
249 | int dw = QApplication::desktop()->width(); | 249 | int dw = QApplication::desktop()->width(); |
250 | setGridX( (dw-13-style().scrollBarExtent().width())/3 ); // tweaked for 8pt+dw=176 and 10pt+dw=240 | 250 | setGridX( (dw-13-style().scrollBarExtent().width())/ (dw/80) ); // tweaked for 8pt+dw=176 and 10pt+dw=240 |
251 | } | 251 | } |
252 | 252 | ||
253 | private: | 253 | private: |
@@ -432,7 +432,7 @@ LauncherView::LauncherView( QWidget* parent, const char* name, WFlags fl ) | |||
432 | icons->setItemsMovable( FALSE ); | 432 | icons->setItemsMovable( FALSE ); |
433 | icons->setAutoArrange( TRUE ); | 433 | icons->setAutoArrange( TRUE ); |
434 | icons->setSorting( TRUE ); | 434 | icons->setSorting( TRUE ); |
435 | icons->setGridX( (dw-13-style().scrollBarExtent().width())/3 ); // tweaked for 8pt+dw=176 and 10pt+dw=240 | 435 | icons->setGridX( (dw-13-style().scrollBarExtent().width())/ (dw/80) ); // tweaked for 8pt+dw=176 and 10pt+dw=240 |
436 | icons->setGridY( fontMetrics().height()*2+24 ); | 436 | icons->setGridY( fontMetrics().height()*2+24 ); |
437 | icons->setFrameStyle( QFrame::NoFrame ); | 437 | icons->setFrameStyle( QFrame::NoFrame ); |
438 | icons->setSpacing( 4 ); | 438 | icons->setSpacing( 4 ); |