summaryrefslogtreecommitdiffstats
path: root/tdeui/kdialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-20 16:23:44 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-20 16:23:44 -0500
commitd3c10a4c34392c87ba70614867e09feeaac74216 (patch)
tree83e078d7cfd593dbf626a4b7695133e784c2fb21 /tdeui/kdialog.cpp
parentbae793079f00cde6d857b55ef9c2d98ec6e091e6 (diff)
downloadtdelibs-d3c10a4c34392c87ba70614867e09feeaac74216.tar.gz
tdelibs-d3c10a4c34392c87ba70614867e09feeaac74216.zip
Expose layout members needed to utilize buttons
Diffstat (limited to 'tdeui/kdialog.cpp')
-rw-r--r--tdeui/kdialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tdeui/kdialog.cpp b/tdeui/kdialog.cpp
index c20bac5a0..6d66d8efd 100644
--- a/tdeui/kdialog.cpp
+++ b/tdeui/kdialog.cpp
@@ -412,7 +412,7 @@ KSMModalDialog::KSMModalDialog(TQWidget* parent)
// we need to set the minimum size for the window
frame->setMinimumWidth(400);
vbox->addWidget( frame );
- TQGridLayout* gbox = new TQGridLayout( frame, 1, 1, KDialog::marginHint(), KDialog::spacingHint() );
+ m_gridlayout = new TQGridLayout( frame, 1, 1, KDialog::marginHint(), KDialog::spacingHint() );
TQHBoxLayout* centerbox = new TQHBoxLayout( frame, 0, KDialog::spacingHint() );
m_statusLabel = new TQLabel( i18n("Pondering what to do next").append("..."), frame );
@@ -420,21 +420,21 @@ KSMModalDialog::KSMModalDialog(TQWidget* parent)
fnt.setBold( false );
fnt.setPointSize( fnt.pointSize() * 1 );
m_statusLabel->setFont( fnt );
- gbox->addMultiCellWidget( m_statusLabel, 2, 2, 0, 2, AlignLeft | AlignVCenter );
+ m_gridlayout->addMultiCellWidget( m_statusLabel, 2, 2, 0, 2, AlignLeft | AlignVCenter );
KSMModalDialogHeader *theader = new KSMModalDialogHeader(this);
centerbox->addWidget( theader, AlignCenter );
- gbox->addLayout(centerbox, 0, 0);
+ m_gridlayout->addLayout(centerbox, 0, 0);
- TQFrame* frame2 = new TQFrame( this );
- frame2->setFrameStyle( TQFrame::NoFrame );
- frame2->setLineWidth( style().pixelMetric( TQStyle::PM_DefaultFrameWidth, frame ) );
- m_buttonbox = new TQHBoxLayout( frame2, 0, KDialog::spacingHint() );
+ m_buttonframe = new TQFrame( this );
+ m_buttonframe->setFrameStyle( TQFrame::NoFrame );
+ m_buttonframe->setLineWidth( style().pixelMetric( TQStyle::PM_DefaultFrameWidth, frame ) );
+ m_buttonbox = new TQHBoxLayout( m_buttonframe, 0, KDialog::spacingHint() );
- m_button1 = new TQPushButton( frame2 );
- m_button2 = new TQPushButton( frame2 );
- m_button3 = new TQPushButton( frame2 );
+ m_button1 = new TQPushButton( m_buttonframe );
+ m_button2 = new TQPushButton( m_buttonframe );
+ m_button3 = new TQPushButton( m_buttonframe );
m_buttonbox->addWidget( m_button1 );
m_buttonbox->addWidget( m_button2 );
m_buttonbox->addWidget( m_button3 );
@@ -442,8 +442,8 @@ KSMModalDialog::KSMModalDialog(TQWidget* parent)
m_button2->hide();
m_button3->hide();
- frame2->hide();
- gbox->addMultiCellWidget( frame2, 3, 3, 0, 2, 0 );
+ m_buttonframe->hide();
+ m_gridlayout->addMultiCellWidget( m_buttonframe, 3, 3, 0, 2, 0 );
setFixedSize( sizeHint() );
setCaption( i18n("Please wait...") );