summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-06-15 07:44:41 (UTC)
committer llornkcor <llornkcor>2004-06-15 07:44:41 (UTC)
commit631bd9765ed1d4e53ee8b021da644e0cfdcd623c (patch) (unidiff)
tree6ab82737682b5e8f3c97933bf3f8c43b216f31bd
parent01b44d9e12a324b8d77f52d66c6799f6f8f0df28 (diff)
downloadopie-631bd9765ed1d4e53ee8b021da644e0cfdcd623c.zip
opie-631bd9765ed1d4e53ee8b021da644e0cfdcd623c.tar.gz
opie-631bd9765ed1d4e53ee8b021da644e0cfdcd623c.tar.bz2
workaround launcherview problems with qt/e 2.3.8
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp
index 71e8753..e86f389 100644
--- a/core/launcher/launcherview.cpp
+++ b/core/launcher/launcherview.cpp
@@ -925,34 +925,36 @@ void LauncherView::setTextColor( const QColor &tc )
925} 925}
926 926
927void LauncherView::setViewFont( const QFont &f ) 927void LauncherView::setViewFont( const QFont &f )
928{ 928{
929 icons->setFont( f ); 929 icons->setFont( f );
930 icons->hideOrShowItems( FALSE ); 930 icons->hideOrShowItems( FALSE );
931} 931}
932 932
933void LauncherView::clearViewFont() 933void LauncherView::clearViewFont()
934{ 934{
935 icons->unsetFont(); 935 icons->unsetFont();
936 icons->hideOrShowItems( FALSE ); 936 icons->hideOrShowItems( FALSE );
937} 937}
938 938
939void LauncherView::resizeEvent(QResizeEvent *e) 939void LauncherView::resizeEvent(QResizeEvent *e)
940{ 940{
941 //qDebug("LauncherView resize event");
941 QVBox::resizeEvent( e ); 942 QVBox::resizeEvent( e );
942 if ( e->size().width() != e->oldSize().width() ) 943// commented out for launcherview and qt/e 2.3.8 problems, probably needs real fixing somewhere...
944// if ( e->size().width() != e->oldSize().width() )
943 sort(); 945 sort();
944} 946}
945 947
946void LauncherView::selectionChanged() 948void LauncherView::selectionChanged()
947{ 949{
948 QIconViewItem* item = icons->currentItem(); 950 QIconViewItem* item = icons->currentItem();
949 if ( item && item->isSelected() ) { 951 if ( item && item->isSelected() ) {
950 AppLnk *appLnk = ((LauncherItem *)item)->appLnk(); 952 AppLnk *appLnk = ((LauncherItem *)item)->appLnk();
951 if ( icons->inKeyEvent() ) // not for mouse press 953 if ( icons->inKeyEvent() ) // not for mouse press
952 emit clicked( appLnk ); 954 emit clicked( appLnk );
953 item->setSelected(FALSE); 955 item->setSelected(FALSE);
954 } 956 }
955} 957}
956 958
957void LauncherView::returnPressed( QIconViewItem *item ) 959void LauncherView::returnPressed( QIconViewItem *item )
958{ 960{