Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:fab_kde
tsp
main.cpp
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File main.cpp of Package tsp
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <qapplication.h> #include <qdir.h> #include <qevent.h> #include <qfileinfo.h> #include <qimage.h> #include <QtGui> #include <qdeclarative.h> #include <QtDBus/QtDBus> #include <QtDBus/QDBusInterface> #include <QtDBus/QDBusReply> #if QT_VERSION >= 0x040000 #include <QTime> #endif #include "mainwindow.h" #if QT_VERSION < 0x040000 #define modifiers state #define AltModifier AltButton #define setWindowTitle setCaption #endif #if QT_VERSION < 0x030000 #define flush flushX #endif int main( int argc, char ** argv ) { qmlRegisterType<Album>("TSP", 1, 0, "Album"); qmlRegisterType<Track>("TSP", 1, 0, "Track"); qmlRegisterType<Playlist>("TSP", 1, 0, "Playlist"); qmlRegisterType<Player>("TSP", 1, 0, "Player"); qmlRegisterType<MyVolumeSlider>("TSP", 1, 0, "MyVolumeSlider"); qmlRegisterType<Player>("Collection", 1, 0, "Collection"); QApplication* app = new QApplication( argc, argv ); app->setApplicationName("QML Player"); QFile file(":/style/style.qss"); file.open(QFile::ReadOnly); QString styleSheet = QLatin1String(file.readAll()); app->setStyleSheet(styleSheet); MainWindow* w = new MainWindow(); w->show(); app->connect( app, SIGNAL(lastWindowClosed()), app, SLOT(quit()) ); int result = app->exec(); delete w; delete app; return result; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor