Commit 9ddfb5d9 by Mārtiņš Možeiko

Information how to start profiling on first launch

parent a75d0584
......@@ -198,12 +198,9 @@ MainWindow::MainWindow()
QObject::connect(mFlatProfile, &SymbolWidget::setMinSamples, mCallGraph, &SymbolWidget::changeMinimumSamples);
QObject::connect(mCallGraph, &SymbolWidget::setMinSamples, mFlatProfile, &SymbolWidget::changeMinimumSamples);
mTabs = new QTabWidget(this);
mTabs = new QTabWidget;
mTabs->addTab(mCallGraph, "Call Graph");
mTabs->addTab(mFlatProfile, "Flat Profile");
mTabs->hide();
setCentralWidget(mTabs);
QObject::connect(ui.actHelpAbout, &QAction::triggered, this, [this]()
{
......@@ -546,7 +543,7 @@ void MainWindow::loadData(uint32_t pointerSize, const QByteArray& data)
callGraphWidget->setVisible(true);
emit ui.actFileSave->setEnabled(true);
emit mTabs->show();
setCentralWidget(mTabs);
}
bool MainWindow::saveData()
......
......@@ -14,7 +14,18 @@
<string>C/C++ Profiler</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout"/>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="lblMainInfo">
<property name="text">
<string>To start new profiling session, select File -&gt; New...</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment