mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2024-11-15 13:35:44 +08:00
1e5a68d2bd
Fixed the cheers icon in the example project ;)
27 lines
576 B
C++
27 lines
576 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( fa::beer ), "Cheers!" );
|
|
w.setCentralWidget( beerButton );
|
|
w.show();
|
|
|
|
return app.exec();
|
|
}
|