author | zecke <zecke> | 2002-07-07 15:43:37 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-07 15:43:37 (UTC) |
commit | 72497e9298d84a711114bb49e3c9454fabca50db (patch) (side-by-side diff) | |
tree | d6ec0825551a496418c3a1dbc7e688f7e0813866 | |
parent | 1d6f229e63930e7af2b691a4715dd94649257048 (diff) | |
download | opie-72497e9298d84a711114bb49e3c9454fabca50db.zip opie-72497e9298d84a711114bb49e3c9454fabca50db.tar.gz opie-72497e9298d84a711114bb49e3c9454fabca50db.tar.bz2 |
Make the Grid Variabel
-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 @@ -246,9 +246,9 @@ protected: { QIconView::styleChange( old ); //### duplicated code from LauncherView constructor int dw = QApplication::desktop()->width(); - setGridX( (dw-13-style().scrollBarExtent().width())/3 ); // tweaked for 8pt+dw=176 and 10pt+dw=240 + setGridX( (dw-13-style().scrollBarExtent().width())/ (dw/80) ); // tweaked for 8pt+dw=176 and 10pt+dw=240 } private: QList<AppLnk> hidden; @@ -431,9 +431,9 @@ LauncherView::LauncherView( QWidget* parent, const char* name, WFlags fl ) int dw = QApplication::desktop()->width(); icons->setItemsMovable( FALSE ); icons->setAutoArrange( TRUE ); icons->setSorting( TRUE ); - icons->setGridX( (dw-13-style().scrollBarExtent().width())/3 ); // tweaked for 8pt+dw=176 and 10pt+dw=240 + icons->setGridX( (dw-13-style().scrollBarExtent().width())/ (dw/80) ); // tweaked for 8pt+dw=176 and 10pt+dw=240 icons->setGridY( fontMetrics().height()*2+24 ); icons->setFrameStyle( QFrame::NoFrame ); icons->setSpacing( 4 ); icons->setMargin( 0 ); |