DArrowLineExpand::DArrowLineExpand(QWidget *parent) : DBaseExpand(parent) { m_headerLine = new ArrowHeaderLine(this); m_headerLine->setExpand(expand()); connect(m_headerLine, &ArrowHeaderLine::mousePress, [=]{ setExpand(!expand()); }); setHeader(m_headerLine); }
void ToolBarWidget::showEvent(QShowEvent *event) { Q_UNUSED(event) QSettings settings(this); settings.beginGroup("common"); bool expand = settings.value("expand_savelist", false).toBool(); settings.endGroup(); if (expand) QTimer::singleShot(0, this, [=] { setExpand(expand, "saveList"); }); DBlurEffectWidget::showEvent(event); }
void GdbDebugger::handleAsyncClass(const QByteArray &asyncClass, const GdbMiValue &result) { m_asyncItem->removeRows(0,m_asyncItem->rowCount()); m_asyncItem->setText(asyncClass); //QStandardItem *item = new QStandardItem(QString(asyncClass)); GdbMiValueToItem(m_asyncItem,result); //m_asyncModel->clear(); //m_asyncModel->appendRow(item); if (asyncClass == "stopped") { handleStopped(result); } else if (asyncClass == "library-loaded") { handleLibrary(result); } emit setExpand(LiteApi::ASYNC_MODEL,m_asyncModel->indexFromItem(m_asyncItem),true); }