Added missing default values to PanelBar, PanelBase and TabbedPanel constructors
authorPekka Nissinen <pekka.nissinen@ixonos.com>
Wed, 11 Aug 2010 11:30:41 +0000 (14:30 +0300)
committerPekka Nissinen <pekka.nissinen@ixonos.com>
Wed, 11 Aug 2010 11:30:41 +0000 (14:30 +0300)
src/ui/friendlistpanel.cpp
src/ui/mainwindow.cpp
src/ui/panelbar.h
src/ui/panelbase.h
src/ui/tabbedpanel.h

index 9c7adc7..17eb0ef 100644 (file)
@@ -74,8 +74,9 @@ FriendListPanel::FriendListPanel(QWidget *parent)
 
     connect(m_clearFilterButton, SIGNAL(clicked()),
             this, SLOT(clearFriendListFilter()));
-    connect(this, SIGNAL(panelOpened()),
-            this, SLOT(clearFriendListFilter()));
+
+//    connect(this, SIGNAL(panelOpened()),
+//            this, SLOT(clearFriendListFilter()));
 }
 
 void FriendListPanel::friendImageReady(User *user)
index 2cd5ed9..a32659e 100644 (file)
@@ -307,6 +307,9 @@ void MainWindow::buildPanels()
     m_tabbedPanel->addTab(m_userInfoPanel, QIcon(":/res/images/user_info.png"));
     m_tabbedPanel->addTab(m_friendsListPanel, QIcon(":/res/images/friend_list.png"));
 
+    connect(m_tabbedPanel, SIGNAL(panelOpened()),
+            m_friendsListPanel, SLOT(clearFriendListFilter()));
+
     connect(m_mapView, SIGNAL(viewResized(QSize)),
             m_tabbedPanel, SLOT(resizePanel(QSize)));
 }
index 56e8240..b1a384b 100644 (file)
@@ -43,7 +43,7 @@ public:
      *
      * @param parent Parent
      */
-    PanelBar(QWidget *parent);
+    PanelBar(QWidget *parent = 0);
 
 /*******************************************************************************
  * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
index 8130001..efea05b 100644 (file)
@@ -43,7 +43,7 @@ public:
      *
      * @param parent Parent
      */
-    PanelBase(QWidget *parent);
+    PanelBase(QWidget *parent = 0);
 
 /*******************************************************************************
  * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
index f81c4b6..9bc1fe4 100644 (file)
@@ -59,7 +59,7 @@ public:
      *
      * @param parent Parent
      */
-    TabbedPanel(QWidget *parent);
+    TabbedPanel(QWidget *parent = 0);
 
 /*******************************************************************************
  * MEMBER FUNCTIONS AND SLOTS