Merge branch 'new_panels_with_context_buttons' of https://vcs.maemo.org/git/situare...
authorSami Rämö <sami.ramo@ixonos.com>
Wed, 25 Aug 2010 10:46:00 +0000 (13:46 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Wed, 25 Aug 2010 10:51:22 +0000 (13:51 +0300)
1  2 
src/ui/friendlistpanel.cpp
src/ui/routingpanel.cpp

@@@ -136,10 -130,6 +136,10 @@@ FriendListPanel::FriendListPanel(QWidge
  
      connect(qApp, SIGNAL(topmostWindowChanged(bool)),
              this, SLOT(topmostWindowChanged(bool)));
 +
 +    // CONTEXT BUTTONS
-     m_contextButtonLayout->addWidget(m_routeButton, 0, 0);
-     m_contextButtonLayout->addWidget(m_clearGroupFilteringButton, 1, 0);
++    m_contextButtonLayout->addWidget(m_routeButton);
++    m_contextButtonLayout->addWidget(m_clearGroupFilteringButton);
  }
  
  void FriendListPanel::anyPanelClosed()
@@@ -33,11 -33,11 +33,11 @@@ RoutingPanel::RoutingPanel(QWidget *par
                                                          ":/res/images/search_s.png",
                                                          "", this);
  
-     m_contextButtonLayout->addWidget(searchLocationButton, 0, 0);
+     m_contextButtonLayout->addWidget(searchLocationButton);
  
 -    m_routeButton = new QPushButton(tr("Route to location"));
 +    m_routeButton = new ImageButton(":res/images/route_to_location.png",
 +                                    ":res/images/route_to_location_s.png", "", this);
      m_routeButton->setDisabled(true);
 -    m_routeButton->hide();
  
      m_locationListHeaderWidget = new QWidget();
      m_locationListHeaderWidget->setLayout(headerLayout);
@@@ -81,9 -82,6 +81,9 @@@
  
      connect(searchLocationButton, SIGNAL(clicked()),
              this, SIGNAL(requestSearchLocation()));
 +
 +    // CONTEXT BUTTONS
-     m_contextButtonLayout->addWidget(m_routeButton, 1, 0);
++    m_contextButtonLayout->addWidget(m_routeButton);
  }
  
  void RoutingPanel::clearListsSelections()