|
|
@ -225,7 +225,7 @@ void TopLevel::showEvent ( TQShowEvent * )
|
|
|
|
/** Handle mousePressEvent */
|
|
|
|
/** Handle mousePressEvent */
|
|
|
|
void TopLevel::mousePressEvent(TQMouseEvent *event)
|
|
|
|
void TopLevel::mousePressEvent(TQMouseEvent *event)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (event->button() == Qt::LeftButton) {
|
|
|
|
if (event->button() == TQt::LeftButton) {
|
|
|
|
if (ready) {
|
|
|
|
if (ready) {
|
|
|
|
stop(); // reset tooltip and stop animation
|
|
|
|
stop(); // reset tooltip and stop animation
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -234,7 +234,7 @@ void TopLevel::mousePressEvent(TQMouseEvent *event)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
start_menu->popup(TQCursor::pos());
|
|
|
|
start_menu->popup(TQCursor::pos());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (event->button() == Qt::RightButton)
|
|
|
|
} else if (event->button() == TQt::RightButton)
|
|
|
|
menu->popup(TQCursor::pos());
|
|
|
|
menu->popup(TQCursor::pos());
|
|
|
|
// else if (event->button() == MidButton) // currently unused
|
|
|
|
// else if (event->button() == MidButton) // currently unused
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -682,7 +682,7 @@ void TopLevel::config()
|
|
|
|
|
|
|
|
|
|
|
|
/* left side - tea list and list-modifying buttons */
|
|
|
|
/* left side - tea list and list-modifying buttons */
|
|
|
|
TQBoxLayout *leftside = new TQVBoxLayout(box);
|
|
|
|
TQBoxLayout *leftside = new TQVBoxLayout(box);
|
|
|
|
TQGroupBox *listgroup = new TQGroupBox(2,Qt::Vertical, i18n("Tea List"), page);
|
|
|
|
TQGroupBox *listgroup = new TQGroupBox(2,TQt::Vertical, i18n("Tea List"), page);
|
|
|
|
leftside->addWidget(listgroup, 0, 0);
|
|
|
|
leftside->addWidget(listgroup, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
listbox = new TQListView(listgroup, "listBox");
|
|
|
|
listbox = new TQListView(listgroup, "listBox");
|
|
|
@ -729,7 +729,7 @@ void TopLevel::config()
|
|
|
|
|
|
|
|
|
|
|
|
/* right side - tea properties */
|
|
|
|
/* right side - tea properties */
|
|
|
|
TQBoxLayout *rightside = new TQVBoxLayout(box);
|
|
|
|
TQBoxLayout *rightside = new TQVBoxLayout(box);
|
|
|
|
editgroup = new TQGroupBox(2,Qt::Vertical, i18n("Tea Properties"), page);
|
|
|
|
editgroup = new TQGroupBox(2,TQt::Vertical, i18n("Tea Properties"), page);
|
|
|
|
rightside->addWidget(editgroup, 0, 0);
|
|
|
|
rightside->addWidget(editgroup, 0, 0);
|
|
|
|
TQHBox *propbox = new TQHBox(editgroup);
|
|
|
|
TQHBox *propbox = new TQHBox(editgroup);
|
|
|
|
|
|
|
|
|
|
|
@ -751,7 +751,7 @@ void TopLevel::config()
|
|
|
|
connect(timeEdit, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinBoxValueChanged(int)));
|
|
|
|
connect(timeEdit, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinBoxValueChanged(int)));
|
|
|
|
|
|
|
|
|
|
|
|
/* bottom - timeout actions */
|
|
|
|
/* bottom - timeout actions */
|
|
|
|
TQGroupBox *actiongroup = new TQGroupBox(4,Qt::Vertical, i18n("Action"), page);
|
|
|
|
TQGroupBox *actiongroup = new TQGroupBox(4,TQt::Vertical, i18n("Action"), page);
|
|
|
|
top_box->addWidget(actiongroup, 0, 0);
|
|
|
|
top_box->addWidget(actiongroup, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
TQWidget *actionconf_widget = new TQWidget(actiongroup);
|
|
|
|
TQWidget *actionconf_widget = new TQWidget(actiongroup);
|
|
|
|