diff options
-rw-r--r-- | tdeui/kdialog.cpp | 24 | ||||
-rw-r--r-- | tdeui/kdialog.h | 4 |
2 files changed, 16 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...") ); diff --git a/tdeui/kdialog.h b/tdeui/kdialog.h index dd1cc3908..ad48693fe 100644 --- a/tdeui/kdialog.h +++ b/tdeui/kdialog.h @@ -236,6 +236,8 @@ public: class TQLabel; class TQPushButton; class TQHBoxLayout; +class TQFrame; +class TQGridLayout; class TDEUI_EXPORT KSMModalDialog : public TQWidget { Q_OBJECT @@ -257,6 +259,8 @@ protected: TQPushButton* m_button2; TQPushButton* m_button3; TQHBoxLayout* m_buttonbox; + TQFrame* m_buttonframe; + TQGridLayout* m_gridlayout; private: TQTimer* m_keepOnTopTimer; |