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.
7 #include <klocale.h> /* i18n */
8 #include "prefdebugger.h"
10 PrefDebugger::PrefDebugger(QWidget
* parent
) :
14 m_debuggerCCppLabel(this),
17 m_terminalLabel(this),
20 m_defaultHint
.setText(i18n("To revert to the default settings, clear the entries."));
21 m_defaultHint
.setMinimumHeight(m_defaultHint
.sizeHint().height());
22 m_grid
.addWidget(&m_defaultHint
, 0, 1);
24 m_debuggerCCppLabel
.setText(i18n("How to invoke &GDB:"));
25 m_debuggerCCppLabel
.setMinimumSize(m_debuggerCCppLabel
.sizeHint());
26 m_debuggerCCppLabel
.setBuddy(&m_debuggerCCpp
);
27 m_debuggerCCpp
.setMinimumSize(m_debuggerCCpp
.sizeHint());
28 m_grid
.addWidget(&m_debuggerCCppLabel
, 1, 0);
29 m_grid
.addWidget(&m_debuggerCCpp
, 1, 1);
31 m_terminalHint
.setText(i18n("%T will be replaced with a title string,\n"
32 "%C will be replaced by a Bourne shell script that\n"
33 "keeps the terminal window open."));
34 m_terminalHint
.setMinimumHeight(m_terminalHint
.sizeHint().height());
35 m_grid
.addWidget(&m_terminalHint
, 2, 1);
37 m_terminalLabel
.setText(i18n("&Terminal for program output:"));
38 m_terminalLabel
.setMinimumSize(m_terminalLabel
.sizeHint());
39 m_terminalLabel
.setBuddy(&m_terminal
);
40 m_terminal
.setMinimumSize(m_terminal
.sizeHint());
41 m_grid
.addWidget(&m_terminalLabel
, 3, 0);
42 m_grid
.addWidget(&m_terminal
, 3, 1);
44 m_grid
.setColumnStretch(1, 10);
45 // last (empty) row gets all the vertical stretch
46 m_grid
.setRowStretch(4, 10);