QtAwesome/QtAwesomeSample/main.cpp
Rick Blommers de4b278b2c Updated to Font Awesome to 3.1.1 (this add a bunch of extra icons)
Changed the link to the new cheat sheet url
2013-05-14 16:40:04 +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();
}