QtAwesome/QtAwesomeSample/main.cpp
Rick Blommers 9075414590 Fixed an error in defaultOption getter. (Duh!)
And fixed the beer icon again for cheers
2013-06-16 19:17:01 +02:00

27 lines
577 B
C++

/**
* 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
QPushButton* beerButton = new QPushButton( awesome->icon( icon_beer ), "Cheers!" );
w.setCentralWidget( beerButton );
w.show();
return app.exec();
}