8
8
// to the system's file path format before opening.
9
9
void MiniThingQt::OpenFilePath (const QString& filePath)
10
10
{
11
- QString adjustedPath = filePath.replace (" /" , " \\ " );
11
+ QString adjustedPath = filePath;
12
+ adjustedPath.replace (" /" , " \\ " );
12
13
QString command = QString (" explorer.exe /select,\" %1\" " ).arg (adjustedPath);
13
14
QProcess::startDetached (command);
14
15
}
@@ -32,10 +33,10 @@ MiniThingQt::MiniThingQt(QWidget* parent) : QMainWindow(parent)
32
33
m_usnSet.clear ();
33
34
34
35
// Setup UI components
35
- setupUIComponents ();
36
+ this -> SetupUIComponents ();
36
37
}
37
38
38
- void MiniThingQt::setupUIComponents ()
39
+ void MiniThingQt::SetupUIComponents ()
39
40
{
40
41
// Setup logo and other UI elements
41
42
QIcon logo (" Logo.ico" );
@@ -50,7 +51,7 @@ void MiniThingQt::setupUIComponents()
50
51
statusBar ()->setStyleSheet (" QLabel { color: black }" );
51
52
52
53
// Setup actions, menus, and other signal-slot connections
53
- setupActionsAndMenus ();
54
+ this -> SetupActionsAndMenus ();
54
55
m_pMiniThingCore = new MiniThingCore ();
55
56
m_pMiniThingQtWorkThread = new MiniThingQtWorkThread (m_pMiniThingCore, statusBar ());
56
57
@@ -78,7 +79,7 @@ void MiniThingQt::setupUIComponents()
78
79
UpdateTableView ();
79
80
}
80
81
81
- oid MiniThingQt::setupActionsAndMenus ()
82
+ void MiniThingQt::SetupActionsAndMenus ()
82
83
{
83
84
// Setup right-click menu
84
85
m_rightKeyMenu = new QMenu (m_ui.tableView );
0 commit comments