Skip to content

Commit c286111

Browse files
committed
Fix build error
1 parent 161e0c3 commit c286111

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

MiniThing/Qt/MiniThingQt.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// to the system's file path format before opening.
99
void MiniThingQt::OpenFilePath(const QString& filePath)
1010
{
11-
QString adjustedPath = filePath.replace("/", "\\");
11+
QString adjustedPath = filePath;
12+
adjustedPath.replace("/", "\\");
1213
QString command = QString("explorer.exe /select,\"%1\"").arg(adjustedPath);
1314
QProcess::startDetached(command);
1415
}
@@ -32,10 +33,10 @@ MiniThingQt::MiniThingQt(QWidget* parent) : QMainWindow(parent)
3233
m_usnSet.clear();
3334

3435
// Setup UI components
35-
setupUIComponents();
36+
this->SetupUIComponents();
3637
}
3738

38-
void MiniThingQt::setupUIComponents()
39+
void MiniThingQt::SetupUIComponents()
3940
{
4041
// Setup logo and other UI elements
4142
QIcon logo("Logo.ico");
@@ -50,7 +51,7 @@ void MiniThingQt::setupUIComponents()
5051
statusBar()->setStyleSheet("QLabel { color: black }");
5152

5253
// Setup actions, menus, and other signal-slot connections
53-
setupActionsAndMenus();
54+
this->SetupActionsAndMenus();
5455
m_pMiniThingCore = new MiniThingCore();
5556
m_pMiniThingQtWorkThread = new MiniThingQtWorkThread(m_pMiniThingCore, statusBar());
5657

@@ -78,7 +79,7 @@ void MiniThingQt::setupUIComponents()
7879
UpdateTableView();
7980
}
8081

81-
oid MiniThingQt::setupActionsAndMenus()
82+
void MiniThingQt::SetupActionsAndMenus()
8283
{
8384
// Setup right-click menu
8485
m_rightKeyMenu = new QMenu(m_ui.tableView);

MiniThing/Qt/MiniThingQt.h

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ class MiniThingQt : public QMainWindow
6464

6565
bool OpenFile(const QString& filePath);
6666
void OpenFilePath(const QString& filePath);
67+
void SetupUIComponents();
68+
void SetupActionsAndMenus();
6769

6870
public slots:
6971
void UpdateStatusBar(const QString& message)

0 commit comments

Comments
 (0)