lines->setFont(qt_settings->normalFont());
}
- int h=0;
+ /* int h=0; */
if (use_rip) {
- h+=rip.height();
+ /* h+=rip.height(); */
+ (void) rip.height();
ok.hide();
search.hide();
rip.show();
} else {
- h+=ok.height()*2 + 7;
+ /* h+=ok.height()*2 + 7; */
+ (void) ok.height();
ok.show();
search.show();
rip.hide();
is_yn = (ch == QString("yn")), // [Yes ][ No ]
is_lr = (ch == QString(lrq)); // [ Left ][Right ]
+#if 0
const int margin=8;
const int gutter=8;
const int extra=fontMetrics().height(); // Extra for group
int x=margin, y=extra+margin;
- int butheight = fontMetrics().height() * 2 + 5,
+#endif
+ int butheight = fontMetrics().height() * 2 + 5,
butwidth = (butheight - 5) * ((is_ynq || is_lr) ? 3
: (is_ynaq || is_yn) ? 2 : 1) + 5;
if (butwidth == butheight) { // square, enough room for C or ^C
button->setFixedSize(butwidth, butheight);
if (ch[i] == def)
button->setDefault(true);
+#if 0
// 'x' and 'y' don't seem to actually used anywhere
// and limit of 10 buttons per row isn't enforced
if (i % 10 == 9) {
} else {
x += butwidth + gutter;
}
+#endif
groupbox->addWidget(button);
bgroup->addButton(button, i);
}
#endif
int i, j, number_of_lines,
cap_and_hunger, exp_points, sho_score,
- height, width, w, xtra, clen, x, y, t, ex, ey,
+ /* both height and width get their values set,
+ * but only width gets used in this function */
+ height UNUSED, width, w, xtra, clen, x, y, t, ex, ey,
condstart = 0, conddummy = 0;
#ifdef STATUS_HILITES
int coloridx = NO_COLOR, attrmask = 0;