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
44
45Qt::Orientation KSeparator::orientation() const
46{
47 return ((frameStyle() & VLine) == VLine) ? Qt::Vertical : Qt::Horizontal;
48}
49
50#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 setFrameShadow(Shadow)
void setFrameShape(Shape)
int frameStyle() const const
void setLineWidth(int)
void setMidLineWidth(int)
Horizontal
typedef WindowFlags
void setMinimumSize(const QSize &)
void updateGeometry()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:51:03 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.