Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 10th, 2010 | Syntax: None | Size: 2.19 KB | Hits: 64 | Expires: Never
Copy text to clipboard
  1. [ 75%] Building CXX object CMakeFiles/tribe.dir/src/CrashHandler.o                                                                                                                            
  2. /home/phil/kdemod/chakra/chakra-tribe/src/tribe-build/src/MainWindow.cpp:94:5: warning: "/*" within comment                                                                                    
  3. /home/phil/kdemod/chakra/chakra-tribe/src/tribe-build/src/MainWindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
  4. /home/phil/kdemod/chakra/chakra-tribe/src/tribe-build/src/MainWindow.cpp:133: error: invalid use of incomplete type 'struct QDesktopWidget'
  5. /usr/include/QtGui/qapplication.h:73: error: forward declaration of 'struct QDesktopWidget'
  6. /home/phil/kdemod/chakra/chakra-tribe/src/tribe-build/src/MainWindow.cpp:134: error: invalid use of incomplete type 'struct QDesktopWidget'
  7. /usr/include/QtGui/qapplication.h:73: error: forward declaration of 'struct QDesktopWidget'
  8. make[2]: *** [CMakeFiles/tribe.dir/src/MainWindow.o] Error 1
  9. make[2]: *** Waiting for unfinished jobs....
  10. make[1]: *** [CMakeFiles/tribe.dir/all] Error 2
  11. make: *** [all] Error 2
  12. ==> ERROR: Build Failed.
  13.  
  14.  
  15. code snippet:
  16.  
  17.     m_movie = new QMovie(":/Images/images/active-page-anim-18.mng", QByteArray(), this);
  18.     m_movie->start();
  19.  
  20.     // InstallationHandler is implemented as a singleton, so be it!
  21.     m_install = InstallationHandler::instance();
  22.  
  23.     connect(m_install, SIGNAL(errorInstalling(const QString&)), SLOT(errorOccurred(const QString&)));
  24.  
  25.     m_install->init();
  26.  
  27.     loadPage(m_currAction);  
  28.    
  29. QDesktopWidget *desktop = QApplication::desktop();
  30.    
  31. int screenWidth, width;
  32. int screenHeight, height;
  33. int x, y;
  34. QSize windowSize;
  35.  
  36. screenWidth = desktop->width(); // get width of screen
  37. screenHeight = desktop->height(); // get height of screen
  38.  
  39. windowSize = size(); // size of our application window
  40. width = windowSize.width();
  41. height = windowSize.height();
  42.  
  43. // little computations
  44. x = (screenWidth - width) / 2;
  45. y = (screenHeight - height) / 2;
  46. y -= 50;
  47.  
  48. // move window to desired coordinates
  49. move ( x, y );
  50. }
  51.  
  52. MainWindow::~MainWindow()
  53. {
  54.     m_movie->stop();
  55.     m_movie->deleteLater();
  56.  
  57. }