Messagelib

kwindowpositioner.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2005 Cornelius Schumacher <schumacher@kde.org>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 #pragma once
9 
10 #include <QWidget>
11 
12 namespace MessageComposer
13 {
14 class KWindowPositioner : public QObject
15 {
16  Q_OBJECT
17 public:
18  enum Mode {
19  Right,
20  Bottom,
21  };
22 
23  KWindowPositioner(QWidget *master, QWidget *slave, Mode mode = Bottom);
24 
25  void reposition();
26 
27 private:
28  QWidget *const mMaster;
29  QWidget *const mSlave;
30 
31  const Mode mMode = Bottom;
32 };
33 }
Q_OBJECTQ_OBJECT
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.