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
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.
QFrame(QWidget *parent, Qt::WindowFlags f)
void setFrameShape(Shape)
int frameStyle() const const
void setLineWidth(int)
void setMidLineWidth(int)
QObject * parent() const const
Horizontal
typedef WindowFlags
QWidget(QWidget *parent, Qt::WindowFlags f)
void setFixedHeight(int h)
void setFixedWidth(int w)
void updateGeometry()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.