┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDominik Haumann <[email protected]>2006-11-28 17:49:49 +0000
committerDominik Haumann <[email protected]>2006-11-28 17:49:49 +0000
commit68e81f7280c810e26cabf6cd2897b9dc8466f458 (patch)
tree54e0c68df0ccec866ef22cb1d054dc0601109d9a /src
parentc86d00c8be2081b7815f641a0d29eb770c713018 (diff)
port to Qt4
svn path=/trunk/playground/utils/dolphin/; revision=608861
Diffstat (limited to 'src')
-rw-r--r--src/sidebar.cpp14
-rw-r--r--src/sidebar.h17
2 files changed, 14 insertions, 17 deletions
diff --git a/src/sidebar.cpp b/src/sidebar.cpp
index 278aafeb6..d67f68180 100644
--- a/src/sidebar.cpp
+++ b/src/sidebar.cpp
@@ -19,28 +19,26 @@
#include "sidebar.h"
-#include <qlayout.h>
-#include <qpixmap.h>
-//Added by qt3to4:
-#include <Q3VBoxLayout>
+#include <QVBoxLayout>
+#include <QComboBox>
+
#include <kiconloader.h>
#include <klocale.h>
-#include <qcombobox.h>
#include "dolphinsettings.h"
#include "sidebarsettings.h"
#include "bookmarkssidebarpage.h"
#include "infosidebarpage.h"
-#include <assert.h>
-
Sidebar::Sidebar(QWidget* parent) :
QWidget(parent),
m_pagesSelector(0),
m_page(0),
m_layout(0)
{
- m_layout = new Q3VBoxLayout(this);
+ m_layout = new QVBoxLayout(this);
+ m_layout->setMargin(0);
+ m_layout->setSpacing(0);
m_pagesSelector = new QComboBox(this);
m_pagesSelector->insertItem(i18n("Information"));
diff --git a/src/sidebar.h b/src/sidebar.h
index fe5bf8f68..772d2d4f9 100644
--- a/src/sidebar.h
+++ b/src/sidebar.h
@@ -21,9 +21,8 @@
#ifndef _SIDEBAR_H_
#define _SIDEBAR_H_
-#include <qwidget.h>
-//Added by qt3to4:
-#include <Q3VBoxLayout>
+#include <QWidget>
+#include <QVBoxLayout>
class KUrl;
class QComboBox;
@@ -46,11 +45,11 @@ public:
virtual QSize sizeHint() const;
signals:
- /**
- * The user selected an item on sidebar widget and item has
- * Url property, so inform the parent togo to this Url;
- */
- void urlChanged(const KUrl& url);
+ /**
+ * The user selected an item on sidebar widget and item has
+ * Url property, so inform the parent togo to this Url;
+ */
+ void urlChanged(const KUrl& url);
private slots:
void createPage(int index);
@@ -60,7 +59,7 @@ private:
QComboBox* m_pagesSelector;
SidebarPage* m_page;
- Q3VBoxLayout* m_layout;
+ QVBoxLayout* m_layout;
};
#endif // _SIDEBAR_H_