[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kuickshow/src
From: Benjamin Meyer <benjamin () csh ! rit ! edu>
Date: 2004-07-15 14:25:46
Message-ID: 20040715142546.C433C99D4 () office ! kde ! org
[Download RAW message or body]
CVS commit by bmeyer:
Fix default size issue
M +5 -0 filewidget.cpp 1.20
M +1 -0 filewidget.h 1.6
M +3 -6 kuickshow.cpp 1.86
--- kdegraphics/kuickshow/src/filewidget.cpp #1.19:1.20
@@ -447,4 +447,9 @@ void FileWidget::slotFinishedLoading()
}
+QSize FileWidget::sizeHint() const
+{
+ return QSize( 300, 300 );
+}
+
void FileWidget::resizeEvent( QResizeEvent *e )
{
--- kdegraphics/kuickshow/src/filewidget.h #1.5:1.6
@@ -71,4 +71,5 @@ protected:
virtual void resizeEvent( QResizeEvent * );
virtual void activatedMenu( const KFileItem *, const QPoint& );
+ virtual QSize sizeHint() const;
private slots:
--- kdegraphics/kuickshow/src/kuickshow.cpp #1.85:1.86
@@ -194,4 +194,5 @@ KuickShow::~KuickShow()
}
+// TODO convert to use xmlui file
void KuickShow::initGUI( const KURL& startDir )
{
@@ -371,5 +372,6 @@ void KuickShow::initGUI( const KURL& sta
setCentralWidget( fileWidget );
- setAutoSaveSettings();
+
+ setupGUI( KMainWindow::Save );
coll->action( "reload" )->setShortcut( KStdAccel::reload() );
@@ -380,9 +382,4 @@ void KuickShow::initGUI( const KURL& sta
coll->action( "preview" )->setShortcut(Key_F11);
coll->action( "separate dirs" )->setShortcut(Key_F12);
-
- // ### somehow the filewidget isn't resized at all sometimes, when initGUI
- // is called lazily, not from this c'tor. (just a tiny little widget in
- // the upper left corner of the mainwindow. Work around that.
- fileWidget->resize( size() );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic