VKey::VKey(QWidget * parent) : QPushButton(parent), mode(E_MODE_NORMAL) { this->setStyleSheet("color:black; border:1px solid #AAAAAA"); connect(this, SIGNAL(clicked()), this, SLOT(slot_clicked())); this->setFocusPolicy(Qt::NoFocus); }
Path_button::Path_button(Core *c, QString text, QString p_uri) : QToolButton(0) , Core_ally(c) , uri(p_uri) , parent_directory(0) , go_parent_visible(false) { setText(text); setToolTip(uri); setCheckable(true); connect(this, SIGNAL(clicked()), this, SLOT(slot_clicked())); //setContextMenuPolicy(Qt::CustomContextMenu); }
bool MenuBar::on_mouse (MouseEvent mouse_event) { if (mouse_event.m & MOUSE_ALL_BUTTON) { ItemList::const_iterator it = item_list.begin (); ItemList::const_iterator end = item_list.end (); unsigned k = 0; while (it != end) { if ((mouse_event.p.x - it->w) < it->text.get_width ()) { slot_clicked (k); return true; } ++k; ++it; } } return false; }
qoption_button::qoption_button(QWidget *parent) : QPushButton(parent), _is_correct(false) { connect(this, SIGNAL(clicked()), this, SLOT(slot_clicked())); }