/** Constructor. The constructor will load the message log's settings from * VidaliSettings and register for log events according to the most recently * set severity filter. * \param torControl A TorControl object used to register for log events. * \param parent The parent widget of this MessageLog object. * \param flags Any desired window creation flags. */ MessageLog::MessageLog(QWidget *parent, Qt::WFlags flags) : VidaliaWindow("MessageLog", parent, flags) { /* Invoke Qt Designer generated QObject setup routine */ ui.setupUi(this); /* Create necessary Message Log QObjects */ _torControl = Vidalia::torControl(); connect(_torControl, SIGNAL(logMessage(tc::Severity, QString)), this, SLOT(log(tc::Severity, QString))); /* Bind events to actions */ createActions(); /* Set tooltips for necessary widgets */ setToolTips(); /* Load the message log's stored settings */ loadSettings(); /* Sort in ascending chronological order */ ui.listMessages->sortItems(LogTreeWidget::TimeColumn, Qt::AscendingOrder); ui.listNotifications->sortItems(0, Qt::AscendingOrder); }
//================================================================== void KCharSelectTable::setFont( const QString &_font ) { vFont = _font; repaintContents( false ); setToolTips(); }
void OptConstraintDialog::setupDialog(){ uiOptConstraint->setupUi(this); this->setWindowTitle("Optimizer – Constraints"); setToolTips(); uiOptConstraint->optConChangeNameEdit->setPlaceholderText("Constraint name"); connect(uiOptConstraint->optConstraintListWidget,SIGNAL(currentTextChanged(QString)), uiOptConstraint->optConItemSelectedLabel,SLOT(setText(QString))); //connect(uiOptConstraint->optConstraintListWidget,SIGNAL(currentTextChanged(QString)), uiOptConstraint->optConChangeNameEdit, SLOT(setText(QString))); initializeConPropertiesDialog(); }
//================================================================== void KCharSelectTable::setTableNum( int _tableNum ) { focusItem = QChar( _tableNum * 256 ); vTableNum = _tableNum; repaintContents( false ); setToolTips(); }
//================================================================== void KCharSelectTable::resizeEvent( QResizeEvent * e ) { const int new_w = (e->size().width() - 2*(margin()+frameWidth())) / numCols(); const int new_h = (e->size().height() - 2*(margin()+frameWidth())) / numRows(); if( new_w != cellWidth()) setCellWidth( new_w ); if( new_h != cellHeight()) setCellHeight( new_h ); setToolTips(); }
//================================================================== KCharSelectTable::KCharSelectTable( QWidget *parent, const char *name, const QString &_font, const QChar &_chr, int _tableNum ) : QGridView( parent, name ), vFont( _font ), vChr( _chr ), vTableNum( _tableNum ), vPos( 0, 0 ), focusItem( _chr ), focusPos( 0, 0 ), d(0) { setBackgroundColor( colorGroup().base() ); setCellWidth( 20 ); setCellHeight( 25 ); setNumCols( 32 ); setNumRows( 8 ); repaintContents( false ); setToolTips(); setFocusPolicy( QWidget::StrongFocus ); setBackgroundMode( QWidget::NoBackground ); }
/** Called when the user changes the UI translation. */ void MessageLog::retranslateUi() { ui.retranslateUi(this); setToolTips(); }
void GamesViewItem::setModelIndex( const QModelIndex& index ) { m_index = index; layoutWidgets(); setToolTips(); }