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>
14 #include <Q3GridLayout>
16 class PrefMisc
: public QWidget
19 PrefMisc(QWidget
* parent
);
24 QCheckBox m_popForeground
;
26 QLabel m_backTimeoutLabel
;
27 QLineEdit m_backTimeout
;
29 QLabel m_tabWidthLabel
;
32 QLabel m_sourceFilterLabel
;
33 QLineEdit m_sourceFilter
;
34 QLabel m_headerFilterLabel
;
35 QLineEdit m_headerFilter
;
37 void setupEditGroup(const QString
& label
, QLabel
& labWidget
, QLineEdit
& edit
, int row
);
40 bool popIntoForeground() const { return m_popForeground
.isChecked(); }
41 void setPopIntoForeground(bool pop
) { m_popForeground
.setChecked(pop
); }
42 int backTimeout() const;
43 void setBackTimeout(int to
);
45 void setTabWidth(int tw
);
46 QString
sourceFilter() const { return m_sourceFilter
.text(); }
47 void setSourceFilter(const QString
& f
) { m_sourceFilter
.setText(f
); }
48 QString
headerFilter() const { return m_headerFilter
.text(); }
49 void setHeaderFilter(const QString
& f
) { m_headerFilter
.setText(f
); }