Commit 9ddfb5d9 authored by Mārtiņš Možeiko's avatar Mārtiņš Možeiko

Information how to start profiling on first launch

parent a75d0584
...@@ -198,12 +198,9 @@ MainWindow::MainWindow() ...@@ -198,12 +198,9 @@ MainWindow::MainWindow()
QObject::connect(mFlatProfile, &SymbolWidget::setMinSamples, mCallGraph, &SymbolWidget::changeMinimumSamples); QObject::connect(mFlatProfile, &SymbolWidget::setMinSamples, mCallGraph, &SymbolWidget::changeMinimumSamples);
QObject::connect(mCallGraph, &SymbolWidget::setMinSamples, mFlatProfile, &SymbolWidget::changeMinimumSamples); QObject::connect(mCallGraph, &SymbolWidget::setMinSamples, mFlatProfile, &SymbolWidget::changeMinimumSamples);
mTabs = new QTabWidget(this); mTabs = new QTabWidget;
mTabs->addTab(mCallGraph, "Call Graph"); mTabs->addTab(mCallGraph, "Call Graph");
mTabs->addTab(mFlatProfile, "Flat Profile"); mTabs->addTab(mFlatProfile, "Flat Profile");
mTabs->hide();
setCentralWidget(mTabs);
QObject::connect(ui.actHelpAbout, &QAction::triggered, this, [this]() QObject::connect(ui.actHelpAbout, &QAction::triggered, this, [this]()
{ {
...@@ -546,7 +543,7 @@ void MainWindow::loadData(uint32_t pointerSize, const QByteArray& data) ...@@ -546,7 +543,7 @@ void MainWindow::loadData(uint32_t pointerSize, const QByteArray& data)
callGraphWidget->setVisible(true); callGraphWidget->setVisible(true);
emit ui.actFileSave->setEnabled(true); emit ui.actFileSave->setEnabled(true);
emit mTabs->show(); setCentralWidget(mTabs);
} }
bool MainWindow::saveData() bool MainWindow::saveData()
......
...@@ -14,7 +14,18 @@ ...@@ -14,7 +14,18 @@
<string>C/C++ Profiler</string> <string>C/C++ Profiler</string>
</property> </property>
<widget class="QWidget" name="centralwidget"> <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>
<widget class="QMenuBar" name="menubar"> <widget class="QMenuBar" name="menubar">
<property name="geometry"> <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