本文整理汇总了C++中setUpdatesEnabled函数的典型用法代码示例。如果您正苦于以下问题:C++ setUpdatesEnabled函数的具体用法?C++ setUpdatesEnabled怎么用?C++ setUpdatesEnabled使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setUpdatesEnabled函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: width
void InterfaceTree::resizeEvent(QResizeEvent *evt)
{
int max_if_width = width() * 2 / 3; // Arbitrary
setUpdatesEnabled(false);
resizeColumnToContents(IFTREE_COL_NAME);
if (columnWidth(IFTREE_COL_NAME) > max_if_width) {
setColumnWidth(IFTREE_COL_NAME, max_if_width);
}
setUpdatesEnabled(true);
QTreeWidget::resizeEvent(evt);
}
示例2: setUpdatesEnabled
void QuizFrame::restoreCommentField() {
setUpdatesEnabled( false );
action[ ACTION_MAXIMIZE ]->setChecked( false );
maximizeCommentButton->setChecked( false );
firstLangPanel->show();
testLangPanel->show();
if( containsValidImage() )
imageBox->show();
if( !buttonsHidden )
controlPanel->show();
setUpdatesEnabled( true );
}
示例3: scalingchanged
bool KIconEditGrid::zoomTo(int scale)
{
QApplication::setOverrideCursor(waitCursor);
emit scalingchanged(cellSize(), false);
setUpdatesEnabled(false);
setCellSize( scale );
setUpdatesEnabled(true);
emit needPainting();
QApplication::restoreOverrideCursor();
emit scalingchanged(cellSize(), true);
if(scale == 1)
return false;
return true;
}
示例4: setUpdatesEnabled
void UiMessageBox::display(const QString &title, const QString &description) {
setUpdatesEnabled(false);
ui->choices->setCurrentIndex(2);
ui->messageLabel->setText(description);
ui->messageButtons->setStandardButtons(QDialogButtonBox::Ok);
setWindowTitle(title);
setUpdatesEnabled(true);
updateGeometry();
QRect screen = QApplication::desktop()->screenGeometry();
move(screen.center() - QPoint(200, 100));
show();
raise();
}
示例5: setUpdatesEnabled
void ComboTabBar::removeTab(int index)
{
if (validIndex(index)) {
setUpdatesEnabled(false);
localTabBar(index)->removeTab(toLocalIndex(index));
updatePinnedTabBarVisibility();
tabRemoved(index);
setMinimumWidths();
setUpdatesEnabled(true);
updateTabBars();
}
}
示例6: setUpdatesEnabled
void KomposeFullscreenWidget::destroyChildWidgets()
{
setUpdatesEnabled( false );
KomposeWidget *child;
QPtrListIterator<KomposeWidget> it( *(layout->getManagedWidgets()));
while ( (child = it.current()) != 0 )
{
++it;
layout->remove(child);
dynamic_cast<QWidget*>(child)->deleteLater();
}
setUpdatesEnabled( true );
kdDebug() << "KomposeFullscreenWidget::destroyChildWidgets() - all children destroyed" << endl;
}
示例7: setUpdatesEnabled
void Playlist::appendTracks( const QList<Track*> tracks )
{
// a week attempt to speed up the setItemWidget time issue
setUpdatesEnabled(false);
bool doSort = isSortingEnabled();
setSortingEnabled(false);
hide();
appendTracks( tracks,(PlaylistItem*)lastChild());
setSortingEnabled(doSort);
setUpdatesEnabled(true);
show();
}
示例8: setUpdatesEnabled
// this is an eventfilter for the KTabListBoxTable which holds all
// of the todo items.
bool TodoView::eventFilter(QObject *, QEvent *event)
{
if (event->type() == Event_MouseButtonPress) {
QMouseEvent *e = (QMouseEvent *) event;
setUpdatesEnabled(FALSE);
doMouseEvent(e);
setUpdatesEnabled(TRUE);
return TRUE;
}
if (event->type() == Event_Resize) {
adjustColumns();
}
return FALSE;
}
示例9: saveState
void KonqCombo::updatePixmaps()
{
saveState();
setUpdatesEnabled( false );
KonqPixmapProvider *prov = KonqPixmapProvider::self();
for ( int i = 1; i < count(); i++ ) {
setItemIcon( i, prov->pixmapFor( itemText( i ) ) );
}
setUpdatesEnabled( true );
repaint();
restoreState();
}
示例10: isUpdatesEnabled
//! Remove all items.
void QwtLegend::clear()
{
#if QT_VERSION < 0x040000
bool doUpdate = isUpdatesEnabled();
#else
bool doUpdate = updatesEnabled();
#endif
setUpdatesEnabled(false);
d_data->map.clear();
setUpdatesEnabled(doUpdate);
update();
}
示例11: setUpdatesEnabled
void GuiDialog::updateView()
{
setUpdatesEnabled(false);
bc().setReadOnly(isBufferReadonly());
// protect the BC from unwarranted state transitions
updating_ = true;
updateContents();
updating_ = false;
// The widgets may not be valid, so refresh the button controller
bc().refresh();
setUpdatesEnabled(true);
}
示例12: setUpdatesEnabled
void ImportASCIIDialog::updateImportMode(int mode)
{
setUpdatesEnabled(false);
if (mode == Overwrite)
setFileMode( QFileDialog::ExistingFile );
else
setFileMode( QFileDialog::ExistingFiles );
initPreview(mode);
setUpdatesEnabled(true);
repaint();
}
示例13: setUpdatesEnabled
void
NowPlayingWidget::onStopped()
{
setUpdatesEnabled( false );
if ( m_metadata )
{
layout()->removeWidget( m_metadata );
m_metadata->deleteLater();
qobject_cast<QVBoxLayout*>(layout())->addStretch( 1 );
}
setUpdatesEnabled( true );
}
示例14: setUpdatesEnabled
void QYLineNumbers::setLineCount( int lines )
{
setUpdatesEnabled(false);
if ( mRows->count() > lines ) {
QLayoutItem* row;
while ( (row = mRows->takeAt(lines)) ) {
delete row;
}
} else {
for ( int i = mRows->count(); i < lines; ++i ) {
mRows->addWidget( new QYNumberLabel( font() ) );
}
}
setUpdatesEnabled(true);
}
示例15: addLookup
void MainWindow::addTab(TabbedWidget* tab)
{
if(!tab->beginSetup()) return;
addLookup(tab);
setUpdatesEnabled(false);
int tabNum = ui_tabWidget->addTab(tab->widget(), QString::fromAscii(""));
ui_tabWidget->setCurrentIndex(tabNum);
setUpdatesEnabled(true);
tab->completeSetup();
moveToTab(tab);
QObject::connect(this, SIGNAL(settingsUpdated()), tab->widget(), SLOT(refreshSettings()));
emit updateActivatable();
}