Fix some status center panes not working properly on smaller screens

This commit is contained in:
Victor Tran 2020-04-23 01:54:48 +10:00
parent eb57801826
commit a63c0116dc
No known key found for this signature in database
GPG key ID: FBA10B22D602BAC1
10 changed files with 25 additions and 0 deletions

View file

@ -89,3 +89,7 @@ void PluginManagement::on_pluginsList_activated(const QModelIndex& index) {
// connect(popover, &tPopover::dismissed, manager, &ManagePluginPopover::deleteLater); // connect(popover, &tPopover::dismissed, manager, &ManagePluginPopover::deleteLater);
popover->show(this->window()); popover->show(this->window());
} }
void PluginManagement::on_titleLabel_backButtonClicked() {
StateManager::statusCenterManager()->showStatusCenterHamburgerMenu();
}

View file

@ -48,6 +48,7 @@ class PluginManagement : public StatusCenterPane {
QWidget* leftPane(); QWidget* leftPane();
private slots: private slots:
void on_pluginsList_activated(const QModelIndex& index); void on_pluginsList_activated(const QModelIndex& index);
void on_titleLabel_backButtonClicked();
}; };
#endif // PLUIGINMANAGEMENT_H #endif // PLUIGINMANAGEMENT_H

View file

@ -87,3 +87,7 @@ void Recovery::on_resetDEButton_clicked() {
delete c; delete c;
}); });
} }
void Recovery::on_titleLabel_backButtonClicked() {
StateManager::statusCenterManager()->showStatusCenterHamburgerMenu();
}

View file

@ -46,6 +46,7 @@ class Recovery : public StatusCenterPane {
QWidget* leftPane(); QWidget* leftPane();
private slots: private slots:
void on_resetDEButton_clicked(); void on_resetDEButton_clicked();
void on_titleLabel_backButtonClicked();
}; };
#endif // RECOVERY_H #endif // RECOVERY_H

View file

@ -163,3 +163,7 @@ void LocaleSettingsPane::on_languagesList_customContextMenuRequested(const QPoin
menu->popup(ui->languagesList->mapToGlobal(pos)); menu->popup(ui->languagesList->mapToGlobal(pos));
} }
} }
void LocaleSettingsPane::on_titleLabel_backButtonClicked() {
StateManager::statusCenterManager()->showStatusCenterHamburgerMenu();
}

View file

@ -51,6 +51,7 @@ class LocaleSettingsPane : public StatusCenterPane {
void on_countryBox_currentIndexChanged(int index); void on_countryBox_currentIndexChanged(int index);
void on_addLanguageButton_clicked(); void on_addLanguageButton_clicked();
void on_languagesList_customContextMenuRequested(const QPoint& pos); void on_languagesList_customContextMenuRequested(const QPoint& pos);
void on_titleLabel_backButtonClicked();
}; };
#endif // LOCALESETTINGSPANE_H #endif // LOCALESETTINGSPANE_H

View file

@ -72,3 +72,7 @@ QListWidgetItem* DevicePane::leftPaneItem() {
void DevicePane::on_disconnectButton_clicked() { void DevicePane::on_disconnectButton_clicked() {
d->device->disconnectInterface(); d->device->disconnectInterface();
} }
void DevicePane::on_titleLabel_backButtonClicked() {
StateManager::statusCenterManager()->showStatusCenterHamburgerMenu();
}

View file

@ -43,6 +43,7 @@ class DevicePane : public AbstractDevicePane {
QListWidgetItem* leftPaneItem(); QListWidgetItem* leftPaneItem();
private slots: private slots:
void on_disconnectButton_clicked(); void on_disconnectButton_clicked();
void on_titleLabel_backButtonClicked();
}; };
#endif // DEVICEPANE_H #endif // DEVICEPANE_H

View file

@ -240,3 +240,7 @@ void WifiDevicePane::on_selectNetworkButton_clicked() {
connect(popover, &tPopover::dismissed, selection, &WirelessNetworkSelectionPopover::deleteLater); connect(popover, &tPopover::dismissed, selection, &WirelessNetworkSelectionPopover::deleteLater);
popover->show(this->window()); popover->show(this->window());
} }
void WifiDevicePane::on_titleLabel_backButtonClicked() {
StateManager::statusCenterManager()->showStatusCenterHamburgerMenu();
}

View file

@ -47,6 +47,7 @@ class WifiDevicePane : public AbstractDevicePane {
private slots: private slots:
void on_disconnectButton_clicked(); void on_disconnectButton_clicked();
void on_selectNetworkButton_clicked(); void on_selectNetworkButton_clicked();
void on_titleLabel_backButtonClicked();
}; };
#endif // WIFIDEVICEPANE_H #endif // WIFIDEVICEPANE_H