KWidgetsAddons

kseparator.cpp
1/*
2 SPDX-FileCopyrightText: 1997 Michael Roth <mroth@wirlweb.de>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "kseparator.h"
8
9class KSeparatorPrivate
10{
11};
12
20
22 : QFrame(parent, f)
23{
24 setLineWidth(1);
26 setOrientation(orientation);
27}
28
29KSeparator::~KSeparator() = default;
30
32{
33 if (orientation == Qt::Vertical) {
36 } else {
39 }
41}
42
43Qt::Orientation KSeparator::orientation() const
44{
45 return ((frameStyle() & VLine) == VLine) ? Qt::Vertical : Qt::Horizontal;
46}
47
48#include "moc_kseparator.cpp"
void setOrientation(Qt::Orientation orientation)
Set the orientation of the separator to orientation.
KSeparator(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Constructor.
void setFrameShape(Shape)
int frameStyle() const const
void setLineWidth(int)
void setMidLineWidth(int)
Horizontal
typedef WindowFlags
void setFixedHeight(int h)
void setFixedWidth(int w)
void updateGeometry()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 25 2024 12:00:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.