Changed routing context buttons to be almost the upper one
authorSami Rämö <sami.ramo@ixonos.com>
Wed, 1 Sep 2010 11:31:23 +0000 (14:31 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Wed, 1 Sep 2010 11:31:23 +0000 (14:31 +0300)
src/ui/locationsearchpanel.cpp
src/ui/routingpanel.cpp

index df452c4..d42353c 100644 (file)
@@ -80,18 +80,18 @@ LocationSearchPanel::LocationSearchPanel(QWidget *parent)
     panelLayout->addLayout(resultsListViewLayout);
 
     // --- CONTEXT BUTTONS ---
-    ImageButton *searchLocationButton = new ImageButton(":/res/images/search.png",
-                                                        ":/res/images/search_s.png", "", this);
-    connect(searchLocationButton, SIGNAL(clicked()),
-            this, SIGNAL(requestSearchLocation()));
-
     m_routeButton = new ImageButton(":res/images/compass.png", "", "", this);
     m_routeButton->setDisabled(true);
     connect(m_routeButton, SIGNAL(clicked()),
             this, SLOT(routeToSelectedLocation()));
 
-    m_contextButtonLayout->addWidget(searchLocationButton);
+    ImageButton *searchLocationButton = new ImageButton(":/res/images/search.png",
+                                                        ":/res/images/search_s.png", "", this);
+    connect(searchLocationButton, SIGNAL(clicked()),
+            this, SIGNAL(requestSearchLocation()));
+
     m_contextButtonLayout->addWidget(m_routeButton);
+    m_contextButtonLayout->addWidget(searchLocationButton);
 }
 
 void LocationSearchPanel::clearListsSelections()
index 9ead7be..45998f4 100644 (file)
@@ -51,19 +51,19 @@ RoutingPanel::RoutingPanel(QWidget *parent)
     setLayout(panelLayout);
 
     // --- CONTEXT BUTTONS ---
+    ImageButton *routeToCursorButton = new ImageButton(":res/images/sight.png",
+                                                       "", "", this);
+    connect(routeToCursorButton, SIGNAL(clicked()),
+            this, SIGNAL(routeToCursor()));
+
     m_clearRouteButton = new ImageButton(":/res/images/gps_position.png",
                                          "", "", this);
     connect(m_clearRouteButton, SIGNAL(clicked()),
             this, SLOT(clearRouteButtonClicked()));
     m_clearRouteButton->setDisabled(true);
 
-    ImageButton *routeToCursorButton = new ImageButton(":res/images/sight.png",
-                                                       "", "", this);
-    connect(routeToCursorButton, SIGNAL(clicked()),
-            this, SIGNAL(routeToCursor()));
-
-    m_contextButtonLayout->addWidget(m_clearRouteButton);
     m_contextButtonLayout->addWidget(routeToCursorButton);
+    m_contextButtonLayout->addWidget(m_clearRouteButton);
 }
 
 void RoutingPanel::clearListsSelections()