本文整理汇总了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();
}
}
示例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());
}
示例3: setHidden
bool NodeTypeItem::applyFilter(QString filter, bool categoryHidden)
{
if (text().contains(filter, Qt::CaseInsensitive)) {
setHidden(categoryHidden);
return true;
} else {
setHidden(true);
return false;
}
}
示例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);
}
示例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); });
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例12: KShapeFactoryBase
ArtworkCalligraphicShapeFactory::ArtworkCalligraphicShapeFactory(QObject *parent)
: KShapeFactoryBase(parent, ArtworkCalligraphicShapeId, i18n("A calligraphic shape"))
{
setToolTip(i18n("Calligraphic Shape"));
setIcon("calligraphy");
setLoadingPriority(1);
setHidden(true);
}
示例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 );
}
}
示例14: QDialog
SettingsMenu::SettingsMenu(QWidget *parent) :
QDialog(parent),
ui(new Ui::SettingsMenu)
{
ui->setupUi(this);
setHidden(true);
}
示例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);
}