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

« back to all changes in this revision

Viewing changes to component/kobemenu.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
#ifndef KOBEMENU_H
 
2
#define KOBEMENU_H
 
3
 
 
4
#include <QWidget>
 
5
#include <QToolButton>
 
6
#include <QDesktopServices>
 
7
#include <QUrl>
 
8
 
 
9
class MainWindow;
 
10
 
 
11
class KobeMenu : public QWidget
 
12
{
 
13
    Q_OBJECT
 
14
public:
 
15
    explicit KobeMenu(QWidget *parent = 0);
 
16
    void setLanguage();
 
17
    void initConnect();
 
18
    void setParentWindow(MainWindow* window) { p_mainwindow = window;}
 
19
 
 
20
private:
 
21
    void createActions();
 
22
 
 
23
public slots:
 
24
    void forumHelp();
 
25
 
 
26
private:
 
27
    QToolButton *help_action;
 
28
    QToolButton *features_action;
 
29
    QToolButton *feedback_action;
 
30
    QToolButton *setting_action;
 
31
    QToolButton *about_action;
 
32
    MainWindow *p_mainwindow;
 
33
 
 
34
};
 
35
 
 
36
#endif // KOBEMENU_H