┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-10 18:43:33 +0000
committerPeter Penz <[email protected]>2007-03-10 18:43:33 +0000
commit74bf01c3fdb68cdb865ea700b89188ff2f9f2a73 (patch)
tree7d1f10bb954977406f6e0f197b6f3a0704f3ade1 /src/infosidebarpage.cpp
parent1959f9c867e41528b154cb25d02957c1c8928a69 (diff)
get rid of nasty separator at the top of the information sidebar (thanks to Luca Gugelmann for the patch!)
svn path=/trunk/KDE/kdebase/apps/; revision=641274
Diffstat (limited to 'src/infosidebarpage.cpp')
-rw-r--r--src/infosidebarpage.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp
index 8b5aea3ce..9c400b198 100644
--- a/src/infosidebarpage.cpp
+++ b/src/infosidebarpage.cpp
@@ -26,16 +26,11 @@
#include <qtimer.h>
#include <qpushbutton.h>
-#include <q3vgroupbox.h>
#include <q3popupmenu.h>
#include <qpainter.h>
#include <qfontmetrics.h>
-#include <q3grid.h>
-#include <q3hgroupbox.h>
-//Added by qt3to4:
#include <Q3ValueList>
#include <QEvent>
-#include <Q3VBoxLayout>
#include <QInputDialog>
#include <kbookmarkmanager.h>
@@ -47,6 +42,7 @@
#include <kglobalsettings.h>
#include <kfilemetainfo.h>
#include <kvbox.h>
+#include <kseparator.h>
#include "dolphinmainwindow.h"
#include "dolphinapplication.h"
@@ -86,15 +82,17 @@ InfoSidebarPage::InfoSidebarPage(DolphinMainWindow* mainWindow, QWidget* parent)
m_name->setMinimumHeight(fontMetrics.height() * 3);
m_name->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Maximum);
- QWidget* sep1 = new Q3HGroupBox(this); // TODO: check whether default widget exist for this?
- sep1->setFixedHeight(1);
+ KSeparator* sep1 = new KSeparator(this);
// general information
m_infos = new QLabel(this);
m_infos->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
m_infos->setTextFormat(Qt::RichText);
+ KSeparator* sep2 = new KSeparator(this);
+
// annotation
+ KSeparator* sep3 = 0;
if (m_metadata->storageUp()) {
m_annotationLabel = new QLabel(this);
m_annotationLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
@@ -103,14 +101,9 @@ InfoSidebarPage::InfoSidebarPage(DolphinMainWindow* mainWindow, QWidget* parent)
m_annotationButton = new QPushButton("", this);
m_annotationButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
connect(m_annotationButton, SIGNAL(released()), this, SLOT(changeAnnotation()));
+ sep3 = new KSeparator(this);
}
- QWidget* sep2 = new Q3HGroupBox(this); // TODO: check whether default widget exist for this?
- sep2->setFixedHeight(1);
-
- QWidget* sep3 = new Q3HGroupBox(this); // TODO: check whether default widget exist for this?
- sep3->setFixedHeight(1);
-
// actions
m_actionBox = new KVBox(this);
m_actionBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
@@ -608,6 +601,7 @@ ServiceButton::~ServiceButton()
void ServiceButton::paintEvent(QPaintEvent* event)
{
+ Q_UNUSED(event);
QPainter painter(this);
const int buttonWidth = width();
const int buttonHeight = height();