Disable help button until doc will created

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800976
This commit is contained in:
Laurent Montel 2008-04-25 11:02:58 +00:00
parent 4e92155f7d
commit 2c65035981
2 changed files with 8 additions and 1 deletions

View File

@ -82,7 +82,8 @@ OpenWidgetAssistant::OpenWidgetAssistant(QWidget *parent)
connect(this, SIGNAL(currentPageChanged(KPageWidgetItem*,KPageWidgetItem*)), SLOT(prepPage(KPageWidgetItem*,KPageWidgetItem*)));
connect(this, SIGNAL(user1Clicked()), this, SLOT(finished()));
enableButton( KDialog::Help, false );
//connect( this, SIGNAL( helpClicked() ), this, SLOT( slotHelpClicked() ) );
m_widgetTypeList->setFocus();
resize(QSize(560, 400).expandedTo(minimumSizeHint()));
}
@ -135,6 +136,11 @@ void OpenWidgetAssistant::prepPage(KPageWidgetItem *current, KPageWidgetItem *be
}
}
void OpenWidgetAssistant::slotHelpClicked()
{
//enable it when doc will created
}
void OpenWidgetAssistant::finished()
{
m_fileDialog->slotOk();

View File

@ -41,6 +41,7 @@ public:
protected Q_SLOTS:
void prepPage(KPageWidgetItem *current, KPageWidgetItem *before);
void finished();
void slotHelpClicked();
private:
KPageWidgetItem *m_typePage;