2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
11 #include <qcheckbox.h>
13 #include <qlineedit.h>
15 class PrefMisc
: public QWidget
18 PrefMisc(QWidget
* parent
);
23 QCheckBox m_popForeground
;
25 QLabel m_backTimeoutLabel
;
26 QLineEdit m_backTimeout
;
28 QLabel m_tabWidthLabel
;
31 QLabel m_sourceFilterLabel
;
32 QLineEdit m_sourceFilter
;
33 QLabel m_headerFilterLabel
;
34 QLineEdit m_headerFilter
;
36 void setupEditGroup(const QString
& label
, QLabel
& labWidget
, QLineEdit
& edit
, int row
);
39 bool popIntoForeground() const { return m_popForeground
.isChecked(); }
40 void setPopIntoForeground(bool pop
) { m_popForeground
.setChecked(pop
); }
41 int backTimeout() const;
42 void setBackTimeout(int to
);
44 void setTabWidth(int tw
);
45 QString
sourceFilter() const { return m_sourceFilter
.text(); }
46 void setSourceFilter(const QString
& f
) { m_sourceFilter
.setText(f
); }
47 QString
headerFilter() const { return m_headerFilter
.text(); }
48 void setHeaderFilter(const QString
& f
) { m_headerFilter
.setText(f
); }