daily pastebin goal
65%
SHARE
TWEET

mon_widget_plugin.cpp

a guest Jun 24th, 2011 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "mon_widget_plugin.hpp"
  2. #include "mon_widget.hpp"
  3.  
  4. #include <QtPlugin>
  5.  
  6. QtCAmon_plugin::QtCAmon_plugin(QObject* parent) : QObject(parent) {
  7. }
  8.  
  9. bool QtCAmon_plugin::isContainer() const {
  10.     return false;
  11. }
  12.  
  13. //bool QtCAmon::isInitialized() {
  14. //}
  15.  
  16. QIcon QtCAmon_plugin::icon() const {
  17.     return QIcon();
  18. }
  19.  
  20. QString QtCAmon_plugin::domXml() const {
  21.     return "<ui language=\"c++\">\n"
  22.         " <widget class=\"QtCAmon\" name=\"QtCAmon\">\n"
  23.         "  <property name=\"geometry\">\n"
  24.         "   <rect>\n"
  25.         "    <x>0</x>\n"
  26.         "    <y>0</y>\n"
  27.         "    <width>300</width>\n"
  28.         "    <height>75</height>\n"
  29.         "   </rect>\n"
  30.         "  </property>\n"
  31.         "  <property name=\"toolTip\" >\n"
  32.         "   <string>Monitor</string>\n"
  33.         "  </property>\n"
  34.         "  <property name=\"whatsThis\" >\n"
  35.         "   <string>Monitor.</string>\n"
  36.         "  </property>\n"
  37.         " </widget>\n"
  38.         "</ui>\n";
  39. }
  40.  
  41. QString QtCAmon_plugin::group() const {
  42.     return "Display Widgets [Example]";
  43. }
  44.  
  45. QString QtCAmon_plugin::includeFile() const {
  46.     return "mon_widget.hpp";
  47. }
  48.  
  49. QString QtCAmon_plugin::name() const {
  50.     return "qtcamon";
  51. }
  52.  
  53. QString QtCAmon_plugin::toolTip() const {
  54.     return "qtcamon";
  55. }
  56.  
  57. QString QtCAmon_plugin::whatsThis() const {
  58.     return "qtcamon";
  59. }
  60.  
  61. QWidget* QtCAmon_plugin::createWidget(QWidget* parent) {
  62.     return new QtCAmon(parent);
  63. }
  64.  
  65. //void QtCAmon::initialize(
  66.  
  67. Q_EXPORT_PLUGIN2(mon_widget_plugin, QtCAmon_plugin)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top