Changeset View
Changeset View
Standalone View
Standalone View
app/mainwindow.cpp
Context not available. | |||||
84 | m_menu = new QMenu(this); | 84 | m_menu = new QMenu(this); | ||
---|---|---|---|---|---|
85 | m_helpMenu = new KHelpMenu(this, KAboutData::applicationData()); | 85 | m_helpMenu = new KHelpMenu(this, KAboutData::applicationData()); | ||
86 | m_sessionStack = new SessionStack(this); | 86 | m_sessionStack = new SessionStack(this); | ||
87 | m_tabBar = new TabBar(this); | | |||
88 | m_titleBar = new TitleBar(this); | 87 | m_titleBar = new TitleBar(this); | ||
88 | m_tabBar = new TabBar(this); | ||||
89 | | ||||
89 | m_firstRunDialog = NULL; | 90 | m_firstRunDialog = NULL; | ||
90 | m_isFullscreen = false; | 91 | m_isFullscreen = false; | ||
91 | 92 | | |||
Context not available. | |||||
649 | m_menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::KeyBindings)))); | 650 | m_menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::KeyBindings)))); | ||
650 | m_menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::ConfigureNotifications)))); | 651 | m_menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::ConfigureNotifications)))); | ||
651 | m_menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Preferences)))); | 652 | m_menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Preferences)))); | ||
653 | | ||||
654 | m_menu->addSeparator(); | ||||
655 | m_menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Quit)))); | ||||
652 | } | 656 | } | ||
653 | 657 | | |||
654 | void MainWindow::updateScreenMenu() | 658 | void MainWindow::updateScreenMenu() | ||
Context not available. | |||||
894 | 898 | | |||
895 | if (Settings::showTabBar()) | 899 | if (Settings::showTabBar()) | ||
896 | { | 900 | { | ||
897 | maxHeight -= m_tabBar->height(); | 901 | if (m_skin->tabBarCompact()) | ||
898 | m_tabBar->setGeometry(m_skin->borderWidth(), maxHeight, | 902 | { | ||
899 | width() - 2 * m_skin->borderWidth(), m_tabBar->height()); | 903 | m_tabBar->setGeometry(m_skin->tabBarLeft(), maxHeight, | ||
904 | width() - m_skin->tabBarLeft() - m_skin->tabBarRight(), m_tabBar->height()); | ||||
905 | } | ||||
906 | else | ||||
907 | { | ||||
908 | maxHeight -= m_tabBar->height(); | ||||
909 | m_tabBar->setGeometry(m_skin->borderWidth(), maxHeight, | ||||
910 | width() - 2 * m_skin->borderWidth(), m_tabBar->height()); | ||||
911 | } | ||||
900 | } | 912 | } | ||
901 | 913 | | |||
902 | m_sessionStack->setGeometry(m_skin->borderWidth(), 0, | 914 | m_sessionStack->setGeometry(m_skin->borderWidth(), 0, | ||
Context not available. |