[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/tools/plasmoidviewer
From:       Frerich Raabe <raabe () kde ! org>
Date:       2007-11-03 14:26:16
Message-ID: 1194099976.431240.27564.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 732334 by raabe:

- This automatic resizing does not seem to be working right now; running
  'plasmoidviewer clock' does not show the clock at all, running
  'plasmoidviewer knewsticker' makes the window twice as wide as necessary.
  I'm taking this out for now.

CCMAIL:aseigo@kde.org


 M  +6 -1      main.cpp  


--- trunk/KDE/kdebase/workspace/plasma/tools/plasmoidviewer/main.cpp #732333:732334
@@ -85,7 +85,12 @@
     applet->setPos( borderWidth, borderWidth );
     applet->setFlag( QGraphicsItem::ItemIsMovable, false );
 
-    FullView view( &corona );
+    QGraphicsView view( &corona );
+    view.setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
+    view.setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
+    view.setAlignment( Qt::AlignLeft | Qt::AlignTop );
+    view.setSceneRect( 0, 0, applet->sizeHint().width(), applet->sizeHint().height() );
+    view.resize( view.sceneRect().size().toSize() );
     view.setWindowTitle( applet->name() );
     view.setWindowIcon( SmallIcon( applet->icon() ) );
     view.show();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic