Messagelib

kwindowpositioner.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2005 Cornelius Schumacher <[email protected]>
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 { Right, Bottom };
19 
20  KWindowPositioner(QWidget *master, QWidget *slave, Mode mode = Bottom);
21 
22  void reposition();
23 
24 private:
25  QWidget *const mMaster;
26  QWidget *const mSlave;
27 
28  const Mode mMode = Bottom;
29 };
30 }
31 
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-2021 The KDE developers.
Generated on Mon Dec 6 2021 23:04:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.