Add the magic incantation to get icons into the cmake build.
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 4 Feb 2012 14:27:14 +0000 (14:27 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 4 Feb 2012 14:27:14 +0000 (14:27 +0000)
No idea why the qtcreate build worked without this.
See http://developer.qt.nokia.com/doc/qt-4.8/resources.html

@Gerald: I've most likely put this into the wrong place, please
  verify/fix.

Thanks to Alexander Neundorf for spotting this and proposing a
fix.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40841 f5534014-38df-0310-8fa8-9805f1628bb7

ui/qt/wireshark_application.cpp

index 4136962ab7eda05156b88e926515ecda7b76c525..748500bb00b28dd2f9e2dc57ad0e98b14bfe0cde 100644 (file)
@@ -263,6 +263,10 @@ WiresharkApplication::WiresharkApplication(int &argc,  char **argv) :
 {
     wsApp = this;
 
+    Q_INIT_RESOURCE(display_filter);
+    Q_INIT_RESOURCE(toolbar);
+    Q_INIT_RESOURCE(welcome);
+
     recentTimer = new QTimer(this);
     connect(recentTimer, SIGNAL(timeout()), this, SLOT(refreshRecentFiles()));
     recentTimer->start(2000);