• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ setUpdatesEnabled函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中setUpdatesEnabled函数的典型用法代码示例。如果您正苦于以下问题:C++ setUpdatesEnabled函数的具体用法?C++ setUpdatesEnabled怎么用?C++ setUpdatesEnabled使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了setUpdatesEnabled函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:velichkov,项目名称:wireshark,代码行数:14,代码来源:interface_tree.cpp


示例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 );
}
开发者ID:FBergeron,项目名称:tomotko-fremantle,代码行数:14,代码来源:QuizFrame.cpp


示例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;
}
开发者ID:kthxbyte,项目名称:KDE1-Linaro,代码行数:14,代码来源:kicongrid.cpp


示例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();
}
开发者ID:iannix,项目名称:IanniX,代码行数:14,代码来源:uimessagebox.cpp


示例5: setUpdatesEnabled

void ComboTabBar::removeTab(int index)
{
    if (validIndex(index)) {
        setUpdatesEnabled(false);

        localTabBar(index)->removeTab(toLocalIndex(index));
        updatePinnedTabBarVisibility();
        tabRemoved(index);
        setMinimumWidths();

        setUpdatesEnabled(true);
        updateTabBars();
    }
}
开发者ID:AwkwardDev,项目名称:qupzilla,代码行数:14,代码来源:combotabbar.cpp


示例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;
}
开发者ID:BackupTheBerlios,项目名称:kompose,代码行数:14,代码来源:komposefullscreenwidget.cpp


示例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();
}
开发者ID:sriram1103,项目名称:knowthelist,代码行数:14,代码来源:playlist.cpp


示例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;
}
开发者ID:kthxbyte,项目名称:KDE1-Linaro,代码行数:16,代码来源:todoview.cpp


示例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();
}
开发者ID:theunbelievablerepo,项目名称:dolphin2.1,代码行数:14,代码来源:konqcombo.cpp


示例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();
}
开发者ID:BackupTheBerlios,项目名称:qtiplot-svn,代码行数:15,代码来源:qwt_legend.cpp


示例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);
}
开发者ID:JoaquimBellmunt,项目名称:lyx,代码行数:14,代码来源:GuiDialog.cpp


示例12: setUpdatesEnabled

void ImportASCIIDialog::updateImportMode(int mode)
{
	setUpdatesEnabled(false);

	if (mode == Overwrite)
		setFileMode( QFileDialog::ExistingFile );
	else
		setFileMode( QFileDialog::ExistingFiles );

	initPreview(mode);

	setUpdatesEnabled(true);
	repaint();
}
开发者ID:BackupTheBerlios,项目名称:qtiplot-svn,代码行数:14,代码来源:ImportASCIIDialog.cpp


示例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 );
}
开发者ID:Erkan-Yilmaz,项目名称:lastfm-desktop,代码行数:14,代码来源:NowPlayingWidget.cpp


示例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);
}
开发者ID:Gerardwx,项目名称:Yzis,代码行数:15,代码来源:qylinenumbers.cpp


示例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();
}
开发者ID:NHHSBotball,项目名称:kiss,代码行数:15,代码来源:MainWindow.cpp


示例16: setUpdatesEnabled

void MainWindow::on_ui_tabWidget_currentChanged(int i) 
{
	if(i < 0) return;
	
	setUpdatesEnabled(false);
	m_currentTab = lookup(ui_tabWidget->widget(i));
	setTitle("");
	if(m_currentTab) {
		m_currentTab->activate();
	}
	
	emit updateActivatable();
	
	setUpdatesEnabled(true);
}
开发者ID:NHHSBotball,项目名称:kiss,代码行数:15,代码来源:MainWindow.cpp


示例17: QSizeF

void GraphView::plot(QPainter *painter, const QRectF &target)
{
	qreal ratio = painter->paintEngine()->paintDevice()->logicalDpiX()
	  / SCREEN_DPI;
	QSizeF canvas = QSizeF(target.width() / ratio, target.height() / ratio);

	setUpdatesEnabled(false);
	redraw(canvas);
	if (_slider->pos().x() == _slider->area().left())
		_slider->hide();
	_scene->render(painter, target);
	_slider->show();
	redraw();
	setUpdatesEnabled(true);
}
开发者ID:tumic0,项目名称:GPXSee,代码行数:15,代码来源:graphview.cpp


示例18: resize

void FramelessDialog::mouseMoveEvent(QMouseEvent* mouseEvent) {
    if (_isResizing) {
        if (_position == POSITION_LEFT) {
            resize(mouseEvent->pos().x(), size().height());
        } else if (_position == POSITION_RIGHT) {
            setUpdatesEnabled(false);
            resize(_resizeInitialWidth - mouseEvent->pos().x(), size().height());
            resizeAndPosition();
            _resizeInitialWidth = size().width();
            setUpdatesEnabled(true);
        } else if (_position == POSITION_TOP) {
            resize(size().width(), mouseEvent->pos().y());
        }
    }
}
开发者ID:ey6es,项目名称:hifi,代码行数:15,代码来源:FramelessDialog.cpp


示例19: setUpdatesEnabled

void TargetView::repopulateList()
{
	// Prevent ugly repaints
	setUpdatesEnabled(false);

	// Clear existing list
	for(int i = 0; i < m_panes.count(); i++)
		delete m_panes.at(i);
	m_panes.clear();

	// Repopulate list
	Profile *profile = App->getProfile();
	TargetList targets = profile->getTargets();
	for(int i = 0; i < targets.count(); i++) {
		Target *target = targets.at(i);
		TargetPane *pane = new TargetPane(target, this);
		target->setupTargetPane(pane);
		m_panes.append(pane);
		m_layout.addWidget(pane);
		connect(pane, &TargetPane::rightClicked,
			this, &TargetView::targetPaneRightClicked,
			Qt::UniqueConnection);
	}

	// HACK: This must be delayed in order to actually do anything
	QTimer::singleShot(10, this, SLOT(enableUpdatesTimeout()));
}
开发者ID:andrejsavikin,项目名称:mishira,代码行数:27,代码来源:targetview.cpp


示例20: QWidget

screenWidget::screenWidget(QWidget *parent, mainWindow *mw) : QWidget(parent) {
#if defined (__WIN32__)
#if defined (WITH_OPENGL)
	memset(&data, 0x00, sizeof(data));
	data.qt = (WNDPROC)GetWindowLongPtr((HWND) winId(), GWLP_WNDPROC);

	// applico un sfondo nero
	parent->setStyleSheet("background-color: black");
#endif
	target = NULL;
#endif

	mwin = mw;

	// se non faccio questa chiamata, la versione SDL crasha all'avvio
	winId();

	setUpdatesEnabled(false);

	setAcceptDrops(true);

	setFocusPolicy(Qt::StrongFocus);
	setFocus(Qt::ActiveWindowFocusReason);

	setMouseTracking(true);

	installEventFilter(this);
}
开发者ID:Dabil,项目名称:puNES,代码行数:28,代码来源:screenWidget.cpp



注:本文中的setUpdatesEnabled函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ setUsingNativeTitleBar函数代码示例发布时间:2022-05-30
下一篇:
C++ setUp函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap