Skip to content

Commit

Permalink
feat: print cpp version
Browse files Browse the repository at this point in the history
  • Loading branch information
tootal committed Jan 12, 2024
1 parent 4dfb3ad commit f2caabc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#include "webview/webpage.h"
#include "core/parser.h"
#include "core/record.h"
#include "core/finder.h"
#include "core/loader.h"
#include "widgets/statuslabel.h"
Expand Down Expand Up @@ -418,3 +417,8 @@ void MainWindow::on_actionDocumentation_triggered()
{
Util::showMarkdown(tr(":/docs/README.md"), this);
}

void MainWindow::on_actionDeveloperTools_triggered()
{
qDebug() << "C++ version:" << __cplusplus;
}
2 changes: 2 additions & 0 deletions src/app/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ private slots:
void on_actionFeedback_triggered();

void on_actionDocumentation_triggered();

void on_actionDeveloperTools_triggered();

protected:
void changeEvent(QEvent *e) override;
Expand Down
13 changes: 10 additions & 3 deletions src/app/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<string>DBLParse</string>
</property>
<property name="windowIcon">
<iconset resource="DBLParse.qrc">
<iconset resource="../DBLParse.qrc">
<normaloff>:/resources/DBLParse.png</normaloff>:/resources/DBLParse.png</iconset>
</property>
<property name="styleSheet">
Expand All @@ -36,7 +36,7 @@
<x>0</x>
<y>0</y>
<width>1280</width>
<height>26</height>
<height>37</height>
</rect>
</property>
<widget class="QMenu" name="menuHelp">
Expand All @@ -51,6 +51,8 @@
<addaction name="actionAboutQt"/>
<addaction name="actionAboutDBLP"/>
<addaction name="actionAboutDBLParse"/>
<addaction name="separator"/>
<addaction name="actionDeveloperTools"/>
</widget>
<widget class="QMenu" name="menuFile">
<property name="title">
Expand Down Expand Up @@ -174,6 +176,11 @@
<string>&amp;Documentation</string>
</property>
</action>
<action name="actionDeveloperTools">
<property name="text">
<string>Developer &amp;Tools</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
Expand All @@ -184,7 +191,7 @@
</customwidget>
</customwidgets>
<resources>
<include location="DBLParse.qrc"/>
<include location="../DBLParse.qrc"/>
</resources>
<connections/>
</ui>

0 comments on commit f2caabc

Please sign in to comment.