26 #if defined (Q_OS_WIN32)
35 #if defined (Q_OS_WIN32)
47 if (colors.isEmpty ())
49 colors << QColor(0,0,0)
50 << QColor(255,255,255)
51 << QColor(192,192,192)
52 << QColor(128,128,128);
61 static QStringList
names;
65 names << QObject::tr (
"foreground")
66 << QObject::tr (
"background")
67 << QObject::tr (
"selection")
68 << QObject::tr (
"cursor");
80 QFont term_font = QFont ();
81 term_font.setStyleHint (QFont::TypeWriter);
83 (settings->value (
"terminal/fontName",
"Courier New").toString ());
84 term_font.setPointSize (settings->value (
"terminal/fontSize", 10).toInt ());
88 = settings->value (
"terminal/cursorType",
"ibeam").toString ();
91 = settings->value (
"terminal/cursorBlinking",
true).toBool ();
93 if (cursorType ==
"ibeam")
95 else if (cursorType ==
"block")
97 else if (cursorType ==
"underline")
100 bool cursorUseForegroundColor
101 = settings->value (
"terminal/cursorUseForegroundColor",
true).toBool ();
106 (settings->value (
"terminal/color_f",
107 QVariant (colors.at (0))).value<QColor> ());
110 (settings->value (
"terminal/color_b",
111 QVariant (colors.at (1))).value<QColor> ());
114 (settings->value (
"terminal/color_s",
115 QVariant (colors.at (2))).value<QColor> ());
118 (cursorUseForegroundColor,
119 settings->value (
"terminal/color_c",
120 QVariant (colors.at (3))).value<QColor> ());