当前位置: 首页>>代码示例>>C++>>正文


C++ setHidden函数代码示例

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


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

示例1: startRound

void MainMenu::update()
{
	if (m_seedPrompt) {
		m_seedPrompt->update();

		if (m_seedPrompt->isDone()) {
			startRound(m_specialMode, m_seedPrompt->getSeed());
			return;
		} else if (m_seedPrompt->isCanceled()) {
			reset();
		}
	} else if (m_start) {
		m_start = false;
		showSeedPrompt();
	} else if (m_viewScoreboard) {
		m_viewScoreboard = false;
		setHidden(true);
		m_scoreboard.reset(new Scoreboard(this));
	}

	if (m_reset) {
		m_reset = false;
		m_scoreboard.reset();
		m_seedPrompt.reset();
		setHidden(false);
	}

	if (m_scoreboard) {
		m_scoreboard->update();
	}
}
开发者ID:Cubernator,项目名称:Jenga,代码行数:31,代码来源:MainMenu.cpp

示例2: QDockWidget

RegisterWidget::RegisterWidget(QWidget* parent) : QDockWidget(parent)
{
  setWindowTitle(tr("Registers"));
  setAllowedAreas(Qt::AllDockWidgetAreas);

  QSettings settings;

  restoreGeometry(settings.value(QStringLiteral("registerwidget/geometry")).toByteArray());
  setFloating(settings.value(QStringLiteral("registerwidget/floating")).toBool());

  CreateWidgets();
  PopulateTable();
  ConnectWidgets();

  connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
    if (Settings::Instance().IsDebugModeEnabled() && Core::GetState() == Core::State::Paused)
      emit RequestTableUpdate();
  });

  connect(this, &RegisterWidget::RequestTableUpdate, [this] {
    m_updating = true;
    emit UpdateTable();
    m_updating = false;
  });

  connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged,
          [this](bool visible) { setHidden(!visible); });

  connect(&Settings::Instance(), &Settings::DebugModeToggled, [this](bool enabled) {
    setHidden(!enabled || !Settings::Instance().IsRegistersVisible());
  });

  setHidden(!Settings::Instance().IsRegistersVisible() ||
            !Settings::Instance().IsDebugModeEnabled());
}
开发者ID:t27duck,项目名称:dolphin,代码行数:35,代码来源:RegisterWidget.cpp

示例3: setHidden

bool NodeTypeItem::applyFilter(QString filter, bool categoryHidden)
{
    if (text().contains(filter, Qt::CaseInsensitive)) {
        setHidden(categoryHidden);
        return true;
    } else {
        setHidden(true);
        return false;
    }
}
开发者ID:hmartinet,项目名称:ddesigner,代码行数:10,代码来源:nodetypeitem.cpp

示例4: QWidget

caGraphics::caGraphics( QWidget *parent) :  QWidget(parent)
{
    QSizePolicy policy( QSizePolicy::Preferred, QSizePolicy::Preferred );
    policy.setHeightForWidth( true );
    setSizePolicy( policy );
    thisChannelA="";
    thisChannelB="";
    thisChannelC="";
    thisChannelD="";
    setForm(Rectangle);
    thisLineSize = 1;
    thisLineColor = Qt::black;
    thisForeColor = Qt::black;

    thisLineColorOld = QColor(255, 254, 253);
    thisForeColorOld = QColor(255, 254, 253);

    thisColorMode = Static;
    thisVisibility = StaticV;
    thisArrowSize=10;
    thisFillStyle = Outline;

    thisTiltAngle = 0;
    thisStartAngle = 0;
    thisSpanAngle = 90;

    setLineStyle(Solid);
    setHidden(false);

    setAttribute(Qt::WA_TranslucentBackground );
    setWindowFlags(Qt::FramelessWindowHint);
}
开发者ID:SLAC-Advanced-Control-Systems,项目名称:caqtdm,代码行数:32,代码来源:cagraphics.cpp

示例5: connect

void LogConfigWidget::ConnectWidgets()
{
  // Configuration
  connect(m_verbosity_notice, &QRadioButton::toggled, this, &LogConfigWidget::SaveSettings);
  connect(m_verbosity_error, &QRadioButton::toggled, this, &LogConfigWidget::SaveSettings);
  connect(m_verbosity_warning, &QRadioButton::toggled, this, &LogConfigWidget::SaveSettings);
  connect(m_verbosity_info, &QRadioButton::toggled, this, &LogConfigWidget::SaveSettings);

  connect(m_out_file, &QCheckBox::toggled, this, &LogConfigWidget::SaveSettings);
  connect(m_out_console, &QCheckBox::toggled, this, &LogConfigWidget::SaveSettings);
  connect(m_out_window, &QCheckBox::toggled, this, &LogConfigWidget::SaveSettings);

  connect(m_types_toggle, &QPushButton::clicked, [this] {
    m_all_enabled = !m_all_enabled;

    // Don't save every time we change an item
    m_block_save = true;

    for (int i = 0; i < m_types_list->count(); i++)
      m_types_list->item(i)->setCheckState(m_all_enabled ? Qt::Checked : Qt::Unchecked);

    m_block_save = false;

    SaveSettings();
  });

  connect(m_types_list, &QListWidget::itemChanged, this, &LogConfigWidget::SaveSettings);

  connect(&Settings::Instance(), &Settings::LogConfigVisibilityChanged, this,
          [this](bool visible) { setHidden(!visible); });
}
开发者ID:delroth,项目名称:dolphin,代码行数:31,代码来源:LogConfigWidget.cpp

示例6: showName

void RFile::touch(const vec3 & colour) {
    if(forced_removal) return;

    fade_start = -1.0f;
    
    //fprintf(stderr, "touch %s\n", fullpath.c_str());

    last_action = elapsed;
    touch_colour = colour;

    //un expire file
    if(expired) {
        for(std::vector<RFile*>::iterator it = gGourceRemovedFiles.begin(); it != gGourceRemovedFiles.end(); it++) {
            if((*it) == this) {
                gGourceRemovedFiles.erase(it);
                break;
            }
        }
        expired=false;
    }

    showName();
    setHidden(false);
    dir->fileUpdated(true);
}
开发者ID:0-T-0,项目名称:Gource,代码行数:25,代码来源:file.cpp

示例7: Q_ASSERT

PointSymbol* OgrFileImport::getSymbolForOgrSymbol(OGRStyleToolH tool, const QByteArray& style_string)
{
	Q_ASSERT(OGR_ST_GetType(tool) == OGRSTCSymbol);
	
	auto raw_tool_key = OGR_ST_GetStyleString(tool);
	auto tool_key = QByteArray::fromRawData(raw_tool_key, qstrlen(raw_tool_key));
	auto symbol = point_symbols.value(tool_key);
	if (symbol && symbol->getType() == Symbol::Point)
		return static_cast<PointSymbol*>(symbol);
	
	int is_null;
	auto color_string = OGR_ST_GetParamStr(tool, OGRSTSymbolColor, &is_null);
	if (is_null)
		return nullptr;
	
	auto point_symbol = static_cast<PointSymbol*>(default_point_symbol->duplicate());
	auto color = makeColor(tool, color_string);
	if (color)
		point_symbol->setInnerColor(color);
	else
		point_symbol->setHidden(true);
	
	auto key = style_string;
	key.detach();
	point_symbols.insert(key, point_symbol);
	
	if (key != tool_key)
	{
		tool_key.detach();
		point_symbols.insert(tool_key, point_symbol);
	}
	
	map->addSymbol(point_symbol, map->getNumSymbols());
	return point_symbol;
}
开发者ID:999999333,项目名称:mapper,代码行数:35,代码来源:ogr_file_format.cpp

示例8: SrtRowTreeWidgetItem

 SrtRowTreeWidgetItem(QTreeWidgetItem *parent, const srt_procedure_t *procedure) :
     QTreeWidgetItem (parent, srt_row_type_),
     procedure_(procedure)
 {
     setText(SRT_COLUMN_PROCEDURE, procedure_->procedure);
     setHidden(true);
 }
开发者ID:okanakgunduz,项目名称:wireshark,代码行数:7,代码来源:service_response_time_dialog.cpp

示例9: setHidden

/*!
    \fn SearchEntryItem::setFilter(Filter& filter)
 */
void SearchEntryItem::setFilter(Filter& filter) {
    bool ok = true
        && (size_ >= filter.minSize)
        && (size_ <= filter.maxSize)
        && (!filter.type.isValid() || filter.type.indexIn(filename_) >=0);
    setHidden(!ok);
}
开发者ID:BackupTheBerlios,项目名称:juicer-svn,代码行数:10,代码来源:searchentryitem.cpp

示例10: setHidden

void Sidebar::setSidebarVisibility(bool visible)
{
    if (visible != m_table->isHidden())
        return;

    static bool sideWasVisible = !isHidden();

    m_table->setHidden(!visible);
    if (visible) {
        setHidden(!sideWasVisible);
        sideWasVisible = true;
    } else {
        sideWasVisible = !isHidden();
        setHidden(true);
    }
}
开发者ID:deiv,项目名称:plasmate-pkg,代码行数:16,代码来源:sidebar.cpp

示例11: setHidden

void VSCVidItemCamConf::VidFilter(astring strFilter)
{
	if (strFilter.size() == 0)
	{
		setHidden(false);
		return;
	}
	std::size_t found = m_cCam.strname().find(strFilter);
	if (found != std::string::npos)
	{
		setHidden(false);
	}else
	{
		setHidden(true);
	}
}
开发者ID:K1161411,项目名称:opencvr,代码行数:16,代码来源:vscviditemcamconf.cpp

示例12: KShapeFactoryBase

ArtworkCalligraphicShapeFactory::ArtworkCalligraphicShapeFactory(QObject *parent)
        : KShapeFactoryBase(parent, ArtworkCalligraphicShapeId, i18n("A calligraphic shape"))
{
    setToolTip(i18n("Calligraphic Shape"));
    setIcon("calligraphy");
    setLoadingPriority(1);
    setHidden(true);
}
开发者ID:KDE,项目名称:koffice,代码行数:8,代码来源:ArtworkCalligraphicShapeFactory.cpp

示例13: setHidden

//-----------------------------------------------------------------------------
//! Forces the gauge to be hidden or shown. Sometimes when changing from full screen
//  to half screen instrument page layouts, gauges must be hidden as there is not
//  enough room. This should be the only time this property is used, and it must
//  only be used programatically, and not exposed to the user.
//-----------------------------------------------------------------------------
void tGauge::SetForcedHide( bool enabled )
{
    if( m_ForcedHide != enabled )
    {
        m_ForcedHide = enabled;
        setHidden( enabled );
    }
}
开发者ID:dulton,项目名称:53_hero,代码行数:14,代码来源:tGauge.cpp

示例14: QDialog

SettingsMenu::SettingsMenu(QWidget *parent) :
	QDialog(parent),
	ui(new Ui::SettingsMenu)
{
	ui->setupUi(this);
	setHidden(true);

}
开发者ID:MaGetzUb,项目名称:FrostEdit,代码行数:8,代码来源:settingsmenu.cpp

示例15: RtdTimeStatTreeWidgetItem

 RtdTimeStatTreeWidgetItem(QTreeWidget *parent, const QString type, const rtd_timestat *timestat) :
     QTreeWidgetItem (parent, rtd_time_stat_type_),
     type_(type),
     timestat_(timestat)
 {
     setText(col_type_, type_);
     setHidden(true);
 }
开发者ID:acaceres2176,项目名称:wireshark,代码行数:8,代码来源:response_time_delay_dialog.cpp


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