3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author Angus Leeming, <a.leeming@ic.ac.uk>
12 #pragma implementation
16 #include <qpushbutton.h>
18 kdeBC::kdeBC(string const & cancel, string const & close)
19 : GuiBC<QPushButton, QWidget>(cancel, close)
23 void kdeBC::setButtonEnabled(QPushButton * btn, bool enabled)
25 btn->setEnabled(enabled);
29 void kdeBC::setWidgetEnabled(QWidget * obj, bool enabled)
31 obj->setEnabled(enabled);
35 void kdeBC::setButtonLabel(QPushButton * btn, string const & label)
37 btn->setText(label.c_str());