您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ updateIcon函数代码示例

51自学网 2021-06-03 09:13:40
  C++
这篇教程C++ updateIcon函数代码示例写得很实用,希望能帮到您。

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

在下文中一共展示了updateIcon函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: GenericButton

VolumeCtrl::VolumeCtrl(Panel *p, QWidget *parent)	: GenericButton(p, parent){	can_Activated = false;	setFixedWidth(28);	setIconSize(QSize(19, 18));		volumeSlider = new SliderWidget();		connect(volumeSlider, SIGNAL(volumeChanged(int)), this, SLOT(updateIcon(int)));	updateIcon(volumeSlider->snd->volume());}
开发者ID:admiral0,项目名称:Antico-Deluxe,代码行数:11,


示例2: updateIcon

void ChatUserNotify::iconClicked(){	ChatDialog *chatDialog = NULL;    // ChatWidget removes the waiting chat from the list with clearWaitingChat()    chatDialog = ChatDialog::getChat(waitingChats.begin()->first, RS_CHAT_OPEN | RS_CHAT_FOCUS);	if (chatDialog == NULL) {		MainWindow::showWindow(MainWindow::Friends);	}    updateIcon();}
开发者ID:N00D13,项目名称:RetroShare,代码行数:11,


示例3: testCurrentPageWebAttribute

void SBI_ImagesIcon::toggleLoadingImages(){    bool current = testCurrentPageWebAttribute(QWebEngineSettings::AutoLoadImages);    setCurrentPageWebAttribute(QWebEngineSettings::AutoLoadImages, !current);    // We should reload page on disabling images    if (current) {        m_window->weView()->reload();    }    updateIcon();}
开发者ID:Martii,项目名称:qupzilla,代码行数:12,


示例4: updateIcon

void lcQColorPicker::changed(int colorIndex){	if (colorIndex == currentColorIndex)		return;	currentColorIndex = colorIndex;	updateIcon();	repaint();	emit colorChanged(currentColorIndex);}
开发者ID:ldraw-linux,项目名称:leocad,代码行数:12,


示例5: updateIcon

void DockAppItem::resizeResources(){    if (m_appIcon != NULL)        updateIcon();    if (m_appBG != NULL) {        resizeBackground();        m_appBG->move(0, 0);    }    updateTitle();}
开发者ID:tsuibin,项目名称:dde-dock,代码行数:12,


示例6: updateIcon

/** * @brief Change "Pause" label * @param _pause */void TrayIcon::onStartPause(bool _start){    if (_start)    {        m_actionPause->setText(tr("Pause"));    }    else    {        m_actionPause->setText(tr("Start"));    }    updateIcon();}
开发者ID:mistic100,项目名称:UMWP-Autochanger,代码行数:17,


示例7: updateIcon

void SiteIcon::setIcon(const QIcon &icon){    bool wasNull = m_icon.isNull();    m_icon = icon;    if (wasNull) {        updateIcon();    }    else {        m_updateTimer->start();    }}
开发者ID:Acidburn0zzz,项目名称:qupzilla,代码行数:13,


示例8: nicknameIndex

void PlayersListModel::playerJoinedRoom(const QString & nickname, bool notify){    QModelIndex mi = nicknameIndex(nickname);    if(mi.isValid())    {        setData(mi, true, RoomFilterRole);        updateIcon(mi);        updateSortData(mi);    }    emit nickAdded(nickname, notify);}
开发者ID:CaF2,项目名称:hw,代码行数:13,


示例9: setCursor

void SearchEdit::mouseMoveEvent(QMouseEvent * event){	if (iconLabel->geometry().contains(event->pos()))	{		if (!text().isEmpty())		{			setCursor(QCursor(Qt::PointingHandCursor));			updateIcon(Hover);		}		else			setCursor(QCursor(Qt::IBeamCursor));	}	else	{		setCursor(QCursor(Qt::IBeamCursor));		if (text().isEmpty())			updateIcon(Ready);		else			updateIcon(InProgress);	}	QLineEdit::mouseMoveEvent(event);}
开发者ID:RandomWalkEagle,项目名称:Contacts,代码行数:22,


示例10: m_dockItem

Client::Client(DockApplet* dockApplet, unsigned long handle)	: m_dockItem(NULL){	m_dockApplet = dockApplet;	m_handle = handle;	X11Support::registerForWindowPropertyChanges(m_handle);	updateVisibility();	updateName();	updateIcon();	updateUrgency();}
开发者ID:ViktorNova,项目名称:qtpanel,代码行数:13,


示例11: QTreeWidget

//=====================Tree=========================AQProjectTreeWidget::AQProjectTreeWidget(QWidget *parent)	: QTreeWidget(parent), m_pCurrentSelection(0), m_pProjectRoot(0){	//Setup context menu	setContextMenuPolicy(Qt::CustomContextMenu);	connect(this, &AQProjectTreeWidget::customContextMenuRequested, this, &AQProjectTreeWidget::showContextMenu);	//connect(this, &AQProjectTreeWidget::itemChanged, this, &AQProjectTreeWidget::onTreeItemChanged);	//Auto update icon	connect(this, &AQProjectTreeWidget::itemExpanded, [=](QTreeWidgetItem * item)		{			auto g_node = static_cast<AQProjectNode*>(item);			g_node->updateIcon();						auto gr_node = dynamic_cast<AGroupProjectNode*>(g_node->projectNode());			if(gr_node)				gr_node->setExpanded(true);	});	connect(this, &AQProjectTreeWidget::itemCollapsed, [=](QTreeWidgetItem * item)		{			auto g_node = static_cast<AQProjectNode*>(item);			g_node->updateIcon();						auto gr_node = dynamic_cast<AGroupProjectNode*>(g_node->projectNode());			if(gr_node)				gr_node->setExpanded(true);	});	connect(this, &AQProjectTreeWidget::itemChanged, this, &AQProjectTreeWidget::changeItemName);	connect(this, &AQProjectTreeWidget::itemActivated, [=](QTreeWidgetItem * item)		{			auto g_node = static_cast<AQProjectNode*>(item);			auto doc_node = dynamic_cast<ADocumentProjectNode*>(g_node->projectNode());			if(doc_node)				emit openNodeFileRequested(doc_node);	});}
开发者ID:AT-GROUP,项目名称:AT-PLANNER,代码行数:39,


示例12: QToolButton

// BrushStyleButton classBrushStyleButton::BrushStyleButton(QWidget *parent)    : QToolButton(parent){    TimeMeasure t("BrushStyleButton");    setCheckable(true);    setPopupMode(QToolButton::InstantPopup);    styleWidget = new BrushStyleWidget(this);    updateIcon();    connect(this, SIGNAL(toggled(bool)), this, SLOT(onToggled(bool)));    connect(this->styleWidget, SIGNAL(closed()), this, SLOT(onStyleWidgetClosed()));}
开发者ID:ildus,项目名称:moodbox_aka_risovaska,代码行数:15,


示例13: OC_METHODGATE

void AgentWindow::updateIdentity(){	OC_METHODGATE();	if(nullptr!=mAgent) {		mAgent->updateDiscoveryClient();		updateIcon();	} else {		qWarning()<<"WARNING: No Agent in agent window";	}	ui->widgetFace->setAgent(mAgent);	ui->widgetDelivery->configure(mAgent);	ui->widgetPairing->configure(mAgent);}
开发者ID:mrdeveloperdude,项目名称:OctoMY,代码行数:14,


示例14: QPushButton

lcQColorPicker::lcQColorPicker(QWidget *parent)	: QPushButton(parent){	setFocusPolicy(Qt::StrongFocus);	setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);	setAutoDefault(false);	setCheckable(true);	initialColorIndex = 0;	currentColorIndex = 0;	updateIcon();	connect(this, SIGNAL(toggled(bool)), SLOT(buttonPressed(bool)));}
开发者ID:ldraw-linux,项目名称:leocad,代码行数:14,


示例15: update

    void update (const File& root,                 const DirectoryContentsList::FileInfo* const fileInfo,                 const int index_,                 const bool highlighted_) throw()    {        thread.removeTimeSliceClient (this);        if (highlighted_ != highlighted             || index_ != index)        {            index = index_;            highlighted = highlighted_;            repaint();        }        File newFile;        String newFileSize;        String newModTime;        if (fileInfo != 0)        {            newFile = root.getChildFile (fileInfo->filename);            newFileSize = File::descriptionOfSizeInBytes (fileInfo->fileSize);            newModTime = fileInfo->modificationTime.formatted (T("%d %b '%y %H:%M"));        }        if (newFile != file             || fileSize != newFileSize             || modTime != newModTime)        {            file = newFile;            fileSize = newFileSize;            modTime = newModTime;            isDirectory = fileInfo != 0 && fileInfo->isDirectory;            repaint();            clearIcon();        }        if (file != File::nonexistent            && icon == 0 && ! isDirectory)        {            updateIcon (true);            if (icon == 0)                thread.addTimeSliceClient (this);        }    }
开发者ID:alessandropetrolati,项目名称:juced,代码行数:49,


示例16: setText

void KasGroupItem::addTask(Task::Ptr t){    if(!t)        return;    items.append(t);    if(items.count() == 1)    {        setText(t->visibleName());        updateIcon();    }    connect(t, SIGNAL(changed(bool)), this, SLOT(update()));    update();}
开发者ID:serghei,项目名称:kde3-kdebase,代码行数:15,


示例17: qWarning

void HWChatWidget::setReadyStatus(const QString & nick, bool isReady){    QList<QListWidgetItem *> items = chatNicks->findItems(nick, Qt::MatchExactly);    if (items.size() != 1)    {        qWarning("Bug: cannot find user in chat");        return;    }    items[0]->setData(Qt::UserRole, isReady); // bulb status    updateIcon(items[0]);    // ensure we're still showing the status bulbs    showReady = true;}
开发者ID:bseelbind,项目名称:hedgewars-accessible,代码行数:15,


示例18: updateIcon

// ==============//   PRIVATE SLOTS// ==============void TrayIcon::slotAttach(){  IID = LX11::CreateWindow( this->winId(), this->rect() );  if( LX11::EmbedWindow(AID, IID) ){    LX11::RestoreWindow(AID); //make it visible    updateIcon();    qDebug() << "System Tray App:" << AID;    emit AppAttached();  }else{    qWarning() << "Could not Embed Tray Application:" << AID;    LX11::DestroyWindow(IID);    IID = 0;    AID = 0;    emit AppClosed();  }}
开发者ID:DJHartley,项目名称:pcbsd,代码行数:18,


示例19: nickRemoved

void PlayersListModel::playerLeftRoom(const QString & nickname){    emit nickRemoved(nickname);    QModelIndex mi = nicknameIndex(nickname);    if(mi.isValid())    {        setData(mi, false, RoomFilterRole);        setData(mi, false, RoomAdmin);        setData(mi, false, Ready);        setData(mi, false, InGame);        updateIcon(mi);    }}
开发者ID:CaF2,项目名称:hw,代码行数:15,


示例20: Q_ASSERT

void StelButton::initCtor(const QPixmap& apixOn,                          const QPixmap& apixOff,                          const QPixmap& apixNoChange,                          const QPixmap& apixHover,                          StelAction* aaction,			  bool noBackground,                          bool isTristate){	pixOn = apixOn;	pixOff = apixOff;	pixHover = apixHover;	pixNoChange = apixNoChange;	noBckground = noBackground;	isTristate_ = isTristate;	opacity = 1.;	hoverOpacity = 0.;	action = aaction;	checked = false;	flagChangeFocus = false;	Q_ASSERT(!pixOn.isNull());	Q_ASSERT(!pixOff.isNull());	if (isTristate_)	{		Q_ASSERT(!pixNoChange.isNull());	}	setShapeMode(QGraphicsPixmapItem::BoundingRectShape);		setAcceptHoverEvents(true);	timeLine = new QTimeLine(250, this);	timeLine->setCurveShape(QTimeLine::EaseOutCurve);	connect(timeLine, SIGNAL(valueChanged(qreal)),	        this, SLOT(animValueChanged(qreal)));	connect(&StelMainView::getInstance(), SIGNAL(updateIconsRequested()), this, SLOT(updateIcon()));  // Not sure if this is ever called?	StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui());	connect(gui, SIGNAL(flagUseButtonsBackgroundChanged(bool)), this, SLOT(updateIcon()));	if (action!=Q_NULLPTR)	{		if (action->isCheckable())		{			setChecked(action->isChecked());			connect(action, SIGNAL(toggled(bool)), this, SLOT(setChecked(bool)));			connect(this, SIGNAL(toggled(bool)), action, SLOT(setChecked(bool)));		}		else		{
开发者ID:Stellarium,项目名称:stellarium,代码行数:48,


示例21: definition

void Action::initialize(){	const ActionsManager::ActionDefinition definition(getDefinition());	switch (m_identifier)	{		case ActionsManager::PreferencesAction:			setMenuRole(QAction::PreferencesRole);			break;		case ActionsManager::AboutQtAction:			setMenuRole(QAction::AboutQtRole);			break;		case ActionsManager::ExitAction:			setMenuRole(QAction::QuitRole);			break;		case ActionsManager::AboutApplicationAction:			setMenuRole(QAction::AboutRole);			break;		default:			break;	}	setShortcutContext(Qt::WidgetShortcut);	if (definition.isValid())	{		if (definition.flags.testFlag(ActionsManager::ActionDefinition::IsCheckableFlag))		{			setCheckable(true);		}		if (definition.flags.testFlag(ActionsManager::ActionDefinition::IsDeprecatedFlag))		{			Console::addMessage(tr("Creating instance of deprecated action: %1").arg(ActionsManager::getActionName(m_identifier)), Console::OtherCategory, Console::WarningLevel);		}		connect(this, &Action::triggered, this, &Action::triggerAction);	}	updateIcon();	updateState();	connect(ActionsManager::getInstance(), &ActionsManager::shortcutsChanged, this, &Action::updateShortcut);}
开发者ID:OtterBrowser,项目名称:otter-browser,代码行数:48,


示例22: QToolButton

LxQtTaskButton::LxQtTaskButton(const WId window, QWidget *parent) :    QToolButton(parent),    mWindow(window),    mDrawPixmap(false){    setCheckable(true);    setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);    setMinimumWidth(1);    setMinimumHeight(1);    setToolButtonStyle(Qt::ToolButtonTextBesideIcon);    setAcceptDrops(true);    updateText();    updateIcon();}
开发者ID:dbluelle,项目名称:lxqt-panel,代码行数:16,


示例23: updateXidTitleMap

void DockAppItem::initData(){    StringMap dataMap = m_entryProxyer->data();    m_itemData.title = dataMap.value("title");    m_itemData.iconPath = dataMap.value("icon");    m_itemData.menuJsonString = dataMap.value("menu");    updateXidTitleMap();    m_itemData.isActived = dataMap.value("app-status") == "active";    m_itemData.currentOpened = m_itemData.xidTitleMap.keys().indexOf(m_clientManager->CurrentActiveWindow().value()) != -1;    m_itemData.id = m_entryProxyer->id();    setActived(m_itemData.isActived);    setCurrentOpened(m_clientManager->CurrentActiveWindow());    updateIcon();    updateTitle();}
开发者ID:tsuibin,项目名称:dde-dock,代码行数:16,


示例24: paintItem

    void paintItem (Graphics& g, int width, int height)    {        if (file != File::nonexistent)        {            updateIcon (true);            if (icon.isNull())                thread.addTimeSliceClient (this);        }        owner.getLookAndFeel().drawFileBrowserRow (g, width, height,                                                   file.getFileName(),                                                   &icon, fileSize, modTime,                                                   isDirectory, isSelected(),                                                   indexInContentsList, owner);    }
开发者ID:anthonyhuecouret,项目名称:argotlunar,代码行数:16,


示例25: ToolButton

SiteIcon::SiteIcon(BrowserWindow* window, LocationBar* parent)    : ToolButton(parent)    , m_window(window)    , m_locationBar(parent)    , m_view(0){    setObjectName("locationbar-siteicon");    setToolButtonStyle(Qt::ToolButtonIconOnly);    setCursor(Qt::ArrowCursor);    setToolTip(LocationBar::tr("Show information about this page"));    setFocusPolicy(Qt::ClickFocus);    m_updateTimer = new QTimer(this);    m_updateTimer->setInterval(100);    m_updateTimer->setSingleShot(true);    connect(m_updateTimer, SIGNAL(timeout()), this, SLOT(updateIcon()));}
开发者ID:Acidburn0zzz,项目名称:qupzilla,代码行数:17,


示例26: updateIcon

void NetStatus::bytesReceived(int count){    // TODO show statistics    _recvbytes += count;    if(!(_activity & 2)) {        _activity |= 2;        updateIcon();    }    if(_download->isVisible()) {        int val = _download->value() + count;        if(val>=_download->maximum())            _download->hide();        else            _download->setValue(val);    }    _timer->start(500);}
开发者ID:GreenReaper,项目名称:Drawpile,代码行数:17,


示例27: minColor

void KoColorPopupAction::setCurrentColor( const KoColor &color ){    d->colorChooser->slotSetColor( color );    KoColor minColor( color );    d->currentColor = minColor;    KoColor maxColor( color );    minColor.setOpacity( OPACITY_TRANSPARENT_U8 );    maxColor.setOpacity( OPACITY_OPAQUE_U8 );    d->opacitySlider->blockSignals( true );    d->opacitySlider->setColors( minColor, maxColor );    d->opacitySlider->setValue( color.opacityU8() );    d->opacitySlider->blockSignals( false );    updateIcon();}
开发者ID:KDE,项目名称:krita,代码行数:17,


示例28: qCDebug

// private slot:void kpColorSimilarityToolBarItem::slotFlashTimerTimeout (){#if DEBUG_KP_COLOR_SIMILARITY_TOOL_BAR_ITEM    qCDebug(kpLogWidgets) << "kpColorSimilarityToolBarItem::slotFlashTimerTimeout()"              << " highlight=" << m_flashHighlight << endl;#endif    int newHigh = m_flashHighlight - 20;    if (newHigh < 0)        newHigh = 0;    m_flashHighlight = newHigh;    updateIcon ();    if (newHigh == 0)        m_flashTimer->stop ();}
开发者ID:KDE,项目名称:kolourpaint,代码行数:18,



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


C++ updateImage函数代码示例
C++ updateHeight函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。