~feng-kylin/youker-assistant/youker-assistant

« back to all changes in this revision

Viewing changes to src/messagedialog.h

  • Committer: kobe
  • Date: 2015-02-13 07:37:10 UTC
  • Revision ID: xiangli@ubuntukylin.com-20150213073710-0jyp02ilyi5njj10
Qt Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013 ~ 2014 National University of Defense Technology(NUDT) & Kylin Ltd.
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License as published by
6
 
 * the Free Software Foundation; version 3.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 */
16
 
#ifndef MESSAGEDIALOG_H
17
 
#define MESSAGEDIALOG_H
18
 
 
19
 
#include <QDialog>
20
 
 
21
 
namespace Ui {
22
 
class MessageDialog;
23
 
}
24
 
 
25
 
class MessageDialog : public QDialog
26
 
{
27
 
    Q_OBJECT
28
 
    
29
 
public:
30
 
    explicit MessageDialog(QWidget *parent = 0);
31
 
    ~MessageDialog();
32
 
    
33
 
private:
34
 
    Ui::MessageDialog *ui;
35
 
    QPoint dragPos;
36
 
protected:
37
 
    void mousePressEvent(QMouseEvent *event);
38
 
    void mouseMoveEvent(QMouseEvent *event);
39
 
    void mouseReleaseEvent(QMouseEvent *event);
40
 
    bool eventFilter(QObject *obj, QEvent *event);
41
 
};
42
 
 
43
 
#endif // MESSAGEDIALOG_H