~stolowski/+junk/unity-2d-no-results-hint

« back to all changes in this revision

Viewing changes to panel/app/main.cpp

  • Committer: Aurelien Gateau
  • Date: 2010-10-06 13:52:55 UTC
  • Revision ID: aurelien.gateau@canonical.com-20101006135255-j4gsdm7k3grh0ydh
Merged in panel

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of unity-qt
 
3
 *
 
4
 * Copyright 2010 Canonical Ltd.
 
5
 *
 
6
 * Authors:
 
7
 * - Aurélien Gâteau <aurelien.gateau@canonical.com>
 
8
 *
 
9
 * License: GPL v3
 
10
 */
 
11
// Local
 
12
 
 
13
// Unity
 
14
#include <appletcontainer.h>
 
15
#include <panel.h>
 
16
 
 
17
// Qt
 
18
#include <QApplication>
 
19
 
 
20
using namespace UnityQt;
 
21
 
 
22
int main(int argc, char** argv)
 
23
{
 
24
    QApplication app(argc, argv);
 
25
    Panel panel;
 
26
    panel.setEdge(Panel::TopEdge);
 
27
    panel.setFixedHeight(24);
 
28
    panel.addWidget(new AppletContainer("appname"));
 
29
    panel.addWidget(new AppletContainer("appmenu"));
 
30
    panel.addSpacer();
 
31
    panel.show();
 
32
    return app.exec();
 
33
}