// popup some sort of preference dialog, here
KitaPreferences dlg;
- connect(&dlg, SIGNAL(signalFontChanged(QFont&)), SLOT(setFont(QFont&)));
+ connect(&dlg, SIGNAL( fontChanged( const QFont& ) ),
+ SLOT( setFont( const QFont& ) ) );
if (dlg.exec()) {
// redo your settings
}
// frame = addPage(i18n("Second Page"), i18n("Page Two Options"));
// m_pageTwo = new KitaPrefPageTwo(frame);
- connect(m_fontPage, SIGNAL(signalFontChanged(QFont&)), SIGNAL(signalFontChanged(QFont&)));
+ connect( m_fontPage, SIGNAL( fontChanged( const QFont& ) ),
+ SIGNAL( fontChanged( const QFont& ) ) );
}
-KitaFontPrefPage::KitaFontPrefPage(QWidget *parent)
+KitaFontPrefPage::KitaFontPrefPage( QWidget *parent )
: KitaFontPrefBase(parent)
{
fontButton->setText(KitaConfig::font().family());
if( KFontDialog::getFont(font, false, this) == QDialog::Accepted ) {
fontButton->setText(font.family());
fontButton->setFont(font);
- emit signalFontChanged(font);
+ emit fontChanged(font);
}
}
-KitaPrefPageTwo::KitaPrefPageTwo(QWidget *parent)
+KitaPrefPageTwo::KitaPrefPageTwo( QWidget *parent )
: QFrame(parent)
{
QHBoxLayout *layout = new QHBoxLayout(this);
class KitaPreferences : public KDialogBase
{
Q_OBJECT
+
public:
KitaPreferences();
private:
KitaFontPrefPage *m_fontPage;
KitaPrefPageTwo *m_pageTwo;
+
signals:
- void signalFontChanged(QFont&);
+ void fontChanged( const QFont& );
};
class KitaFontPrefPage : public KitaFontPrefBase
{
Q_OBJECT
+
public:
- KitaFontPrefPage(QWidget *parent = 0);
+ KitaFontPrefPage( QWidget *parent = 0 );
+
public slots:
void slotFontButtonClicked();
+
signals:
- void signalFontChanged(QFont&);
+ void fontChanged( const QFont& );
};
class KitaPrefPageTwo : public QFrame
{
Q_OBJECT
+
public:
- KitaPrefPageTwo(QWidget *parent = 0);
+ KitaPrefPageTwo( QWidget *parent = 0 );
};
#endif // _KITAPREF_H_