Vergelijk commits
No commits in common. "2df37212ddacb316dfb33a5efc98b128c48fb086" and "f9038f3098549dc7096a8f7d8e7ee28bd9fc3f36" have entirely different histories.
2df37212dd
...
f9038f3098
@ -19,8 +19,7 @@ enum EntryType
|
||||
{
|
||||
USER,
|
||||
INHERIT,
|
||||
SYSTEM,
|
||||
DYNAMIC
|
||||
SYSTEM
|
||||
};
|
||||
|
||||
class EntryConfig
|
||||
|
@ -106,7 +106,7 @@ void EntryPushButton::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
this->userEntryMenu.exec(QCursor::pos());
|
||||
}
|
||||
else if(this->config.type == EntryType::SYSTEM)
|
||||
else
|
||||
{
|
||||
this->systemEntryMenu.exec(QCursor::pos());
|
||||
}
|
||||
@ -116,7 +116,7 @@ void EntryPushButton::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
void EntryPushButton::mouseMoveEvent(QMouseEvent *event)
|
||||
{
|
||||
if(this->config.type == EntryType::SYSTEM || this->config.type == EntryType::DYNAMIC)
|
||||
if(this->config.type == EntryType::SYSTEM)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ void Window::populateGrid(const QVector<EntryPushButton *> &list)
|
||||
|
||||
void Window::executeConfig(const EntryConfig &config)
|
||||
{
|
||||
if(config.isTerminalCommand || QApplication::keyboardModifiers().testFlag(Qt::ShiftModifier))
|
||||
if(config.isTerminalCommand)
|
||||
{
|
||||
QString cmd = settingsProvider->getTerminalCommand();
|
||||
cmd.replace("%c", config.command);
|
||||
@ -266,7 +266,6 @@ void Window::addPATHSuggestion(const QString &text)
|
||||
e.row = 0;
|
||||
e.command = suggestions[0];
|
||||
e.iconPath = suggestions[0];
|
||||
e.type = EntryType::DYNAMIC;
|
||||
EntryPushButton *button = createEntryButton(e);
|
||||
clearGrid();
|
||||
grid->addWidget(button, 0, 0);
|
||||
@ -344,7 +343,6 @@ void Window::lineEditTextChanged(QString text)
|
||||
}
|
||||
e.command = arguments[0];
|
||||
e.iconPath = "utilities-terminal";
|
||||
e.type = EntryType::DYNAMIC;
|
||||
|
||||
EntryPushButton *button = createEntryButton(e);
|
||||
clearGrid();
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user