// settings
m_toSettingsAct = new QAction(tr("Settings"), this);
- m_toSettingsAct->setObjectName(tr("Settings"));
connect(m_toSettingsAct, SIGNAL(triggered()),
this, SLOT(openSettingsDialog()));
m_loggedIn = logged;
- if(m_loginAct) {
- if(logged) {
- m_loginAct->setText(tr("Logout"));
- }
- else {
- m_loginAct->setText(tr("Login"));
- }
- showPanels(m_loggedIn);
+ if(logged) {
+ m_loginAct->setText(tr("Logout"));
+ }
+ else {
+ m_loginAct->setText(tr("Login"));
}
+ showPanels(m_loggedIn);
}
void MainWindow::loginDialogDone(const QString &email, const QString &password)
m_mapView->setScene(scene);
}
-void MainWindow::setUsername(const QString &username)
-{
- qDebug() << __PRETTY_FUNCTION__;
- m_email = username;
-}
-
void MainWindow::setOwnLocationCrosshairVisibility(bool visibility)
{
qDebug() << __PRETTY_FUNCTION__;
}
}
+void MainWindow::setUsername(const QString &username)
+{
+ qDebug() << __PRETTY_FUNCTION__;
+ m_email = username;
+}
+
void MainWindow::setViewPortSize(int width, int height)
{
qDebug() << __PRETTY_FUNCTION__;
{
qDebug() << __PRETTY_FUNCTION__;
if(show) {
- // ToDo: opening panels when needed
m_friendsListPanel->show();
m_friendsListPanelSidebar->show();
m_userPanel->show();
m_userPanelSidebar->show();
}
else {
+ m_friendsListPanel->closePanel();
m_friendsListPanel->hide();
m_friendsListPanelSidebar->hide();
+ m_userPanel->closePanel();
m_userPanel->hide();
m_userPanelSidebar->hide();
}