Changed routing context buttons to be almost the upper one
[situare] / src / ui / routingpanel.cpp
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()