From 58dc173493d348a056511e5caf6b886ebd12d47e Mon Sep 17 00:00:00 2001 From: Jussi Laitinen Date: Mon, 16 Aug 2010 13:22:13 +0300 Subject: [PATCH 1/1] Added missing PanelTabBar to src.pro. --- src/src.pro | 2 ++ src/ui/friendlistpanel.cpp | 3 +-- src/ui/routingpanel.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/src.pro b/src/src.pro index 8ea4422..81399d9 100644 --- a/src/src.pro +++ b/src/src.pro @@ -75,6 +75,7 @@ SOURCES += main.cpp \ ui/panelbar.cpp \ ui/panelcontent.cpp \ ui/panelbase.cpp \ + ui/paneltabbar.cpp \ user/user.cpp \ ui/routingpanel.cpp \ ui/routewaypointlistview.cpp \ @@ -157,6 +158,7 @@ HEADERS += application.h \ ui/panelbar.h \ ui/panelcontent.h \ ui/panelbase.h \ + ui/paneltabbar.h \ ui/routingpanel.h \ ui/routewaypointlistview.h \ ui/routewaypointlistitem.h diff --git a/src/ui/friendlistpanel.cpp b/src/ui/friendlistpanel.cpp index b9b4911..1788f48 100644 --- a/src/ui/friendlistpanel.cpp +++ b/src/ui/friendlistpanel.cpp @@ -45,7 +45,6 @@ FriendListPanel::FriendListPanel(QWidget *parent) setLayout(friendListPanelLayout); QHBoxLayout *filterLayout = new QHBoxLayout(); -///< @todo magic filterLayout->setContentsMargins(FRIENDPANEL_FILTER_MARGIN_LEFT, 0, FRIENDPANEL_FILTER_MARGIN_RIGHT, 0); @@ -53,7 +52,7 @@ FriendListPanel::FriendListPanel(QWidget *parent) m_friendListHeaderWidget->setLayout(filterLayout); m_friendListHeaderWidget->setAutoFillBackground(true); - m_routeButton = new QPushButton("Route to friend"); + m_routeButton = new QPushButton(tr("Route to friend")); QPalette labelPalette = m_friendListHeaderWidget->palette(); labelPalette.setColor(QPalette::Background, Qt::black); diff --git a/src/ui/routingpanel.cpp b/src/ui/routingpanel.cpp index 4369909..7289978 100644 --- a/src/ui/routingpanel.cpp +++ b/src/ui/routingpanel.cpp @@ -27,9 +27,9 @@ RoutingPanel::RoutingPanel(QWidget *parent) QVBoxLayout *listViewLayout = new QVBoxLayout; listViewLayout->setContentsMargins(PANEL_MARGIN_LEFT, 0, PANEL_MARGIN_RIGHT, 0); - m_searchLocationButton = new QPushButton("Search location"); + m_searchLocationButton = new QPushButton(tr("Search location")); - m_routeButton = new QPushButton("Route to location"); + m_routeButton = new QPushButton(tr("Route to location")); m_routeButton->hide(); m_locationListHeaderWidget = new QWidget(); -- 1.7.9.5