This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
amarokFS/amarokFS-0.4.2-config_dialog_layout.patch

57 lines
2.1 KiB
Diff

diff -uNr amarokFS-qt3-0.4.2/amarokfs_config.cpp amarokFS-qt3-0.4.2-mod/amarokfs_config.cpp
--- amarokFS-qt3-0.4.2/amarokfs_config.cpp 2007-02-09 17:25:17.000000000 +0200
+++ amarokFS-qt3-0.4.2-mod/amarokfs_config.cpp 2007-02-11 17:12:31.000000000 +0200
@@ -48,32 +48,46 @@
setCaption("amarokFS Config" );
+ QVBoxLayout *configLayout = new QVBoxLayout( this, 11, 6, "configLayout" );
+
+ QHBoxLayout *themeLayout = new QHBoxLayout( 0, 0, 6, "themeLayout" );
textLabel1 = new QLabel( this, "textLabel1" );
textLabel1->setGeometry( QRect( 10, 10, 50, 20 ) );
textLabel1->setText( "Theme:" );
+ themeLayout->addWidget(textLabel1);
kURLRequester1 = new KURLRequester( this, "kURLRequester1" );
kURLRequester1->setGeometry( QRect( 60, 0, 311, 41 ) );
kURLRequester1->setFilter( "*.xml|xml Theme Files" );
-
+ themeLayout->addWidget( kURLRequester1 );
+ configLayout->addLayout(themeLayout);
+
disScrSvr = new QCheckBox(this, "disScrSvr");
disScrSvr->setText("Disable screen saver");
disScrSvr->setGeometry( QRect(10, 40, 250, 20) );
-
+ configLayout->addWidget( disScrSvr );
+
textLabel2 = new QLabel( this, "textLabel2" );
textLabel2->setGeometry( QRect( 10, 70, 371, 20 ) );
textLabel2->setText("New settings will be applied after restarting the application." ) ;
-
+ configLayout->addWidget( textLabel2 );
+
+ QHBoxLayout *buttonLayout = new QHBoxLayout( 0, 0, 6, "buttonLayout" );
+ QSpacerItem *buttonSpacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ buttonLayout->addItem( buttonSpacer );
+
+
okButton = new QPushButton( this, "ok" );
okButton->setGeometry( QRect( 211, 90, 80, 30 ) );
okButton->setText( "OK" );
+ buttonLayout->addWidget( okButton );
cancelButton = new QPushButton( this, "cancel" );
cancelButton->setGeometry( QRect( 300, 90, 80, 30 ) );
cancelButton->setText( "Cancel" );
-
- resize( QSize(390, 130).expandedTo(minimumSizeHint()) );
-
-
+ buttonLayout->addWidget( cancelButton );
+ configLayout->addLayout( buttonLayout );
+
+
kapp->config()->setGroup ("Theme");
themeKUrl = kapp->config()->readEntry ("KUrl", "");
//cout << themeKUrl << "\n";