2013-04-19 14:26:54 +08:00
|
|
|
/**
|
|
|
|
* Copyright 2011-2013 - Reliable Bits Software by Blommers IT. All Rights Reserved.
|
|
|
|
* Author Rick Blommers
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "QtAwesome.h"
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QPushButton>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
QMainWindow w;
|
|
|
|
|
|
|
|
QtAwesome* awesome = new QtAwesome(&w);
|
|
|
|
awesome->initFontAwesome();
|
|
|
|
|
|
|
|
// a simple beer button
|
2013-06-17 01:17:01 +08:00
|
|
|
QPushButton* beerButton = new QPushButton( awesome->icon( icon_beer ), "Cheers!" );
|
2013-04-19 14:26:54 +08:00
|
|
|
w.setCentralWidget( beerButton );
|
|
|
|
w.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|