Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanoSong committed May 10, 2024
1 parent 161e0c3 commit c286111
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 6 additions & 5 deletions MiniThing/Qt/MiniThingQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
// to the system's file path format before opening.
void MiniThingQt::OpenFilePath(const QString& filePath)
{
QString adjustedPath = filePath.replace("/", "\\");
QString adjustedPath = filePath;
adjustedPath.replace("/", "\\");
QString command = QString("explorer.exe /select,\"%1\"").arg(adjustedPath);
QProcess::startDetached(command);
}
Expand All @@ -32,10 +33,10 @@ MiniThingQt::MiniThingQt(QWidget* parent) : QMainWindow(parent)
m_usnSet.clear();

// Setup UI components
setupUIComponents();
this->SetupUIComponents();
}

void MiniThingQt::setupUIComponents()
void MiniThingQt::SetupUIComponents()
{
// Setup logo and other UI elements
QIcon logo("Logo.ico");
Expand All @@ -50,7 +51,7 @@ void MiniThingQt::setupUIComponents()
statusBar()->setStyleSheet("QLabel { color: black }");

// Setup actions, menus, and other signal-slot connections
setupActionsAndMenus();
this->SetupActionsAndMenus();
m_pMiniThingCore = new MiniThingCore();
m_pMiniThingQtWorkThread = new MiniThingQtWorkThread(m_pMiniThingCore, statusBar());

Expand Down Expand Up @@ -78,7 +79,7 @@ void MiniThingQt::setupUIComponents()
UpdateTableView();
}

oid MiniThingQt::setupActionsAndMenus()
void MiniThingQt::SetupActionsAndMenus()
{
// Setup right-click menu
m_rightKeyMenu = new QMenu(m_ui.tableView);
Expand Down
2 changes: 2 additions & 0 deletions MiniThing/Qt/MiniThingQt.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class MiniThingQt : public QMainWindow

bool OpenFile(const QString& filePath);
void OpenFilePath(const QString& filePath);
void SetupUIComponents();
void SetupActionsAndMenus();

public slots:
void UpdateStatusBar(const QString& message)
Expand Down

0 comments on commit c286111

Please sign in to comment.