summaryrefslogtreecommitdiff
path: root/libopie2/opieui/oseparator.cpp
Unidiff
Diffstat (limited to 'libopie2/opieui/oseparator.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opieui/oseparator.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libopie2/opieui/oseparator.cpp b/libopie2/opieui/oseparator.cpp
index 85181dc..98d42c7 100644
--- a/libopie2/opieui/oseparator.cpp
+++ b/libopie2/opieui/oseparator.cpp
@@ -1,15 +1,14 @@
1/* 1/*
2                 This file is part of the Opie Project 2                 This file is part of the Opie Project
3
4              Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> 3              Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de>
5 Copyright (C) 1997 Michael Roth <mroth@wirlweb.de> 4 Copyright (C) 1997 Michael Roth <mroth@wirlweb.de>
6 =. 5 =.
7 .=l. 6 .=l.
8           .>+-= 7           .>+-=
9 _;:,     .>    :=|. This program is free software; you can 8 _;:,     .>    :=|. This program is free software; you can
10.> <`_,   >  .   <= redistribute it and/or modify it under 9.> <`_,   >  .   <= redistribute it and/or modify it under
11:`=1 )Y*s>-.--   : the terms of the GNU Library General Public 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
12.="- .-=="i,     .._ License as published by the Free Software 11.="- .-=="i,     .._ License as published by the Free Software
13 - .   .-<_>     .<> Foundation; either version 2 of the License, 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
14     ._= =}       : or (at your option) any later version. 13     ._= =}       : or (at your option) any later version.
15    .%`+i>       _;_. 14    .%`+i>       _;_.
@@ -21,32 +20,33 @@
21..}^=.=       =       ; Library General Public License for more 20..}^=.=       =       ; Library General Public License for more
22++=   -.     .`     .: details. 21++=   -.     .`     .: details.
23 :     =  ...= . :.=- 22 :     =  ...= . :.=-
24 -.   .:....=;==+<; You should have received a copy of the GNU 23 -.   .:....=;==+<; You should have received a copy of the GNU
25  -_. . .   )=.  = Library General Public License along with 24  -_. . .   )=.  = Library General Public License along with
26    --        :-=` this library; see the file COPYING.LIB. 25    --        :-=` this library; see the file COPYING.LIB.
27 If not, write to the Free Software Foundation, 26 If not, write to the Free Software Foundation,
28 Inc., 59 Temple Place - Suite 330, 27 Inc., 59 Temple Place - Suite 330,
29 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
30 29
31*/ 30*/
32 31
33/* QT */
34
35#include <qstyle.h>
36
37/* OPIE */ 32/* OPIE */
38 33
34#include <opie2/odebug.h>
39#include <opie2/oseparator.h> 35#include <opie2/oseparator.h>
40 36
37/* QT */
38
39#include <qstyle.h>
40
41OSeparator::OSeparator(QWidget* parent, const char* name, WFlags f) 41OSeparator::OSeparator(QWidget* parent, const char* name, WFlags f)
42 : QFrame(parent, name, f) 42 : QFrame(parent, name, f)
43{ 43{
44 setLineWidth(1); 44 setLineWidth(1);
45 setMidLineWidth(0); 45 setMidLineWidth(0);
46 setOrientation( HLine ); 46 setOrientation( HLine );
47} 47}
48 48
49 49
50 50
51OSeparator::OSeparator(int orientation, QWidget* parent, const char* name, WFlags f) 51OSeparator::OSeparator(int orientation, QWidget* parent, const char* name, WFlags f)
52 : QFrame(parent, name, f) 52 : QFrame(parent, name, f)
@@ -60,25 +60,25 @@ OSeparator::OSeparator(int orientation, QWidget* parent, const char* name, WFlag
60 60
61void OSeparator::setOrientation(int orientation) 61void OSeparator::setOrientation(int orientation)
62{ 62{
63 switch(orientation) 63 switch(orientation)
64 { 64 {
65 case Vertical: 65 case Vertical:
66 case VLine: 66 case VLine:
67 setFrameStyle( QFrame::VLine | QFrame::Sunken ); 67 setFrameStyle( QFrame::VLine | QFrame::Sunken );
68 setMinimumSize(2, 0); 68 setMinimumSize(2, 0);
69 break; 69 break;
70 70
71 default: 71 default:
72 qWarning( "OSeparator::setOrientation(): invalid orientation, using default orientation HLine" ); 72 owarn << "OSeparator::setOrientation(): invalid orientation, using default orientation HLine" << oendl;
73 73
74 case Horizontal: 74 case Horizontal:
75 case HLine: 75 case HLine:
76 setFrameStyle( QFrame::HLine | QFrame::Sunken ); 76 setFrameStyle( QFrame::HLine | QFrame::Sunken );
77 setMinimumSize(0, 2); 77 setMinimumSize(0, 2);
78 break; 78 break;
79 } 79 }
80} 80}
81 81
82 82
83 83
84int OSeparator::orientation() const 84int OSeparator::orientation() const