void CroppingLabel::mouseReleaseEvent(QMouseEvent *e) { if (editable) showTextEdit(); emit clicked(); QLabel::mouseReleaseEvent(e); }
void DiffWidget::contextMenuEvent( QContextMenuEvent* /* e */ ) { QPopupMenu* popup = new QPopupMenu( this ); if ( !te->isVisible() ) { popup->insertItem( i18n("Display &Raw Output"), this, SLOT(showTextEdit()) ); popup->insertSeparator(); popup->insertItem( i18n("Hide view"), this, SLOT(hideView()) ); } popup->exec( QCursor::pos() ); delete popup; }
void CroppingLabel::editBegin() { showTextEdit(); textEdit->selectAll(); }