~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to kcontrol/screensaver/scrnsave.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-31 19:16:54 UTC
  • Revision ID: james.westby@ubuntu.com-20071031191654-xuof6e1jg6uxqaze
Tags: 3.95.0-0ubuntu1~gutsy1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include <kservicetypetrader.h>
21
21
#include <kstandarddirs.h>
22
 
#include <Qt3Support/Q3ButtonGroup>
23
22
#include <QCheckBox>
24
23
#include <Qt3Support/Q3Header>
25
24
#include <QLabel>
121
120
 
122
121
    QBoxLayout *topLayout = new QHBoxLayout(this);
123
122
    topLayout->setSpacing(KDialog::spacingHint());
124
 
    topLayout->setMargin(0);
125
123
 
126
124
    // left column
127
125
    QVBoxLayout *leftColumnLayout = new QVBoxLayout( );
128
126
    topLayout->addItem( leftColumnLayout );
129
127
    leftColumnLayout->setSpacing( KDialog::spacingHint() );
130
 
    QBoxLayout *vLayout = new QVBoxLayout();
131
 
    leftColumnLayout->addItem( vLayout );
132
 
    vLayout->setSpacing( KDialog::spacingHint() );
133
128
 
134
 
    mSaverGroup = new Q3GroupBox(i18n("Screen Saver"), this );
135
 
    mSaverGroup->setColumnLayout( 0, Qt::Horizontal );
136
 
    vLayout->addWidget(mSaverGroup);
137
 
    vLayout->setStretchFactor( mSaverGroup, 10 );
138
 
    QBoxLayout *groupLayout = new QVBoxLayout();
139
 
    mSaverGroup->layout()->addItem( groupLayout );
140
 
    groupLayout->setSpacing( KDialog::spacingHint() );
 
129
    mSaverGroup = new QGroupBox(i18n("Screen Saver"), this );
 
130
    QVBoxLayout *groupLayout = new QVBoxLayout( mSaverGroup );
 
131
    leftColumnLayout->addWidget(mSaverGroup);
 
132
    leftColumnLayout->setStretchFactor( mSaverGroup, 10 );
141
133
 
142
134
    mSaverListView = new Q3ListView( mSaverGroup );
143
135
    mSaverListView->setMinimumHeight( 120 );
150
142
    mSaverListView->setWhatsThis( i18n("Select the screen saver to use.") );
151
143
 
152
144
    QBoxLayout* hlay = new QHBoxLayout();
153
 
    groupLayout->addItem(hlay);
154
 
    hlay->setSpacing(KDialog::spacingHint());
 
145
    groupLayout->addLayout(hlay);
155
146
    mSetupBt = new QPushButton( i18n("&Setup..."), mSaverGroup );
156
147
    connect( mSetupBt, SIGNAL( clicked() ), SLOT( slotSetup() ) );
157
148
    mSetupBt->setEnabled(false);
164
155
    hlay->addWidget( mTestBt );
165
156
    mTestBt->setWhatsThis( i18n("Show a full screen preview of the screen saver.") );
166
157
 
167
 
    mSettingsGroup = new Q3GroupBox( i18n("Settings"), this );
168
 
    mSettingsGroup->setColumnLayout( 0, Qt::Vertical );
 
158
    mSettingsGroup = new QGroupBox( i18n("Settings"), this );
 
159
    groupLayout = new QVBoxLayout( mSettingsGroup );
169
160
    leftColumnLayout->addWidget( mSettingsGroup );
170
 
    groupLayout = new QVBoxLayout();
171
 
    mSettingsGroup->layout()->addItem( groupLayout );
172
 
    groupLayout->setSpacing( KDialog::spacingHint() );
173
161
 
174
162
    mEnabledCheckBox = new QCheckBox(i18n(
175
163
        "Start a&utomatically"), mSettingsGroup);
441
429
    slotTimeoutChanged( 5 );
442
430
    slotLockTimeoutChanged( 60 );
443
431
    slotLock( false );
 
432
    mEnabledCheckBox->setChecked(false);
444
433
 
445
434
    updateValues();
446
435