Window: buttonClick(): Correct parameter name

Этот коммит содержится в:
2020-09-27 15:44:16 +02:00
родитель 6b924c0f53
Коммит 9daaba2543
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@@ -118,9 +118,9 @@ void Window::populateGrid(const QVector<EntryPushButton *> &list)
} }
} }
void Window::buttonClick(const EntryPushButton &config) void Window::buttonClick(const EntryPushButton &button)
{ {
QProcess::startDetached(config.getCommand(), config.getArguments()); QProcess::startDetached(button.getCommand(), button.getArguments());
this->closeWindow(); this->closeWindow();
} }

Просмотреть файл

@@ -63,7 +63,7 @@ class Window : public QWidget
void keyReleaseEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event);
QVector<EntryPushButton *> generateEntryButtons(const QVector<EntryConfig> &userEntryButtons); QVector<EntryPushButton *> generateEntryButtons(const QVector<EntryConfig> &userEntryButtons);
void keyPressEvent(QKeyEvent *event); void keyPressEvent(QKeyEvent *event);
void buttonClick(const EntryPushButton &config); void buttonClick(const EntryPushButton &button);
void addToFavourites(const EntryPushButton &button); void addToFavourites(const EntryPushButton &button);
QLineEdit *lineEdit; QLineEdit *lineEdit;
QGridLayout *grid; QGridLayout *grid;