File indexing completed on 2024-04-14 05:36:27

0001 /***************************************************************************
0002  *   Copyright (C) 2015 Zoltan Padrah                                *
0003  *                                                                         *
0004  *   This program is free software; you can redistribute it and/or modify  *
0005  *   it under the terms of the GNU General Public License as published by  *
0006  *   the Free Software Foundation; either version 2 of the License, or     *
0007  *   (at your option) any later version.                                   *
0008  ***************************************************************************/
0009 
0010 #ifndef KTECHLAB_CORE_MAIN_H__
0011 #define KTECHLAB_CORE_MAIN_H__
0012 
0013 // #include <QMotifStyle>
0014 #include <QProxyStyle>
0015 
0016 /**
0017  * see approach from here:
0018  * http://stackoverflow.com/questions/5909907/drawing-an-overlay-on-top-of-an-applications-window
0019  */
0020 class DiagnosticStyle : public QProxyStyle
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     typedef QProxyStyle BaseStyle;
0026     void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override;
0027     ~DiagnosticStyle() override
0028     {
0029     }
0030 };
0031 
0032 #endif // KTECHLAB_CORE_MAIN_H__