[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeutils/khexedit
From: Benjamin Meyer <benjamin () csh ! rit ! edu>
Date: 2004-05-14 15:04:05
Message-ID: 20040514150405.9EC1690E7 () office ! kde ! org
[Download RAW message or body]
CVS commit by bmeyer:
Let KMainWindow handle the window size/location
M +1 -21 toplevel.cc 1.81
M +0 -1 toplevel.h 1.34
--- kdeutils/khexedit/toplevel.cc #1.80:1.81
@@ -112,6 +112,6 @@ KHexEdit::KHexEdit( void )
//
readConfiguration();
- setStartupGeometry();
initialize( mWindowList.count() == 1 ? true : false );
+ setAutoSaveSettings();
}
@@ -780,6 +780,4 @@ void KHexEdit::writeConfiguration( KConf
saveMainWindowSettings(& config, "General Options");
config.setGroup("General Options" );
- config.writeEntry("Width", width() );
- config.writeEntry("Height", height() );
config.writeEntry("ShowFullPath", mShowFullPath );
config.writeEntry("ConversionPosition", (int)mManager->conversionPosition());
@@ -872,22 +870,4 @@ void KHexEdit::readConfiguration( KConfi
-void KHexEdit::setStartupGeometry( void )
-{
- KConfig &config = *kapp->config();
- config.setGroup("General Options");
- int w = config.readNumEntry( "Width", -1 );
- int h = config.readNumEntry( "Height", -1 );
- if( w < 10 || h < 10 )
- {
- setGeometry( 0, 0, mManager->preferredWidth(), 500 );
- }
- else
- {
- setGeometry( 0, 0, w, h );
- }
-}
-
-
-
void KHexEdit::operationChanged( bool state )
{
--- kdeutils/khexedit/toplevel.h #1.33:1.34
@@ -213,5 +213,4 @@ protected:
void writeConfiguration( KConfig &config );
void readConfiguration( KConfig &config );
- void setStartupGeometry( void );
bool eventFilter( QObject *obj, QEvent *event );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic