Example #1
0
void CroppingLabel::mouseReleaseEvent(QMouseEvent *e)
{
    if (editable)
        showTextEdit();

    emit clicked();

    QLabel::mouseReleaseEvent(e);
}
Example #2
0
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;
}
Example #3
0
void CroppingLabel::editBegin()
{
    showTextEdit();
    textEdit->selectAll();
}