3 // Copyright by Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
10 #include <qcheckbox.h>
12 #include <qlineedit.h>
14 class PrefMisc
: public QWidget
17 PrefMisc(QWidget
* parent
);
22 QCheckBox m_popForeground
;
24 QLabel m_backTimeoutLabel
;
25 QLineEdit m_backTimeout
;
27 QLabel m_tabWidthLabel
;
30 QLabel m_sourceFilterLabel
;
31 QLineEdit m_sourceFilter
;
32 QLabel m_headerFilterLabel
;
33 QLineEdit m_headerFilter
;
35 void setupEditGroup(const QString
& label
, QLabel
& labWidget
, QLineEdit
& edit
, int row
);
38 bool popIntoForeground() const { return m_popForeground
.isChecked(); }
39 void setPopIntoForeground(bool pop
) { m_popForeground
.setChecked(pop
); }
40 int backTimeout() const;
41 void setBackTimeout(int to
);
43 void setTabWidth(int tw
);
44 QString
sourceFilter() const { return m_sourceFilter
.text(); }
45 void setSourceFilter(const QString
& f
) { m_sourceFilter
.setText(f
); }
46 QString
headerFilter() const { return m_headerFilter
.text(); }
47 void setHeaderFilter(const QString
& f
) { m_headerFilter
.setText(f
); }