MEPP2 Project
QtHelpers.h
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published
6 // by the Free Software Foundation; either version 3 of the License,
7 // or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 #pragma once
12 
13 #include <QWidget>
14 #include "Base/Color.hpp"
15 
16 #include <QThread>
17 
18 namespace FEVV {
19 
20 namespace Helpers {
21 
29 void
30 changeBackgroundColor(QWidget *_widget, const Color &_color);
31 
39 void
40 changeTextColor(QWidget *_widget, const Color &_color);
41 
46 class SleeperThread : public QThread
47 {
48 public:
55  static void msleep(unsigned long msecs) { QThread::msleep(msecs); }
56 };
57 
58 } // namespace Helpers
59 
60 } // namespace FEVV
FEVV::Helpers::changeBackgroundColor
void changeBackgroundColor(QWidget *_widget, const Color &_color)
Definition: QtHelpers.cpp:14
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
FEVV::Helpers::changeTextColor
void changeTextColor(QWidget *_widget, const Color &_color)
Definition: QtHelpers.cpp:25
FEVV::Helpers::SleeperThread
SleeperThread class.
Definition: QtHelpers.h:47
Color.hpp
FEVV::Helpers::SleeperThread::msleep
static void msleep(unsigned long msecs)
Sleep function.
Definition: QtHelpers.h:55