oopapidocs
2.0
|
00001 #ifndef QOBJECTBROWSERACTION_H 00002 #define QOBJECTBROWSERACTION_H 00003 00004 #include "qobjectbrowser.h" 00005 #include <QAction> 00006 #include <QScopedPointer> 00007 00011 class OBJECTBROWSER_EXPORT QObjectBrowserAction : public QAction { 00012 Q_OBJECT 00013 public: 00016 QObjectBrowserAction(QObject* parent=0); 00017 bool isChecked() const; 00018 public slots: 00019 void setChecked(bool); 00020 void checkCheck(); 00021 private: 00022 QScopedPointer<QObjectBrowser> m_browser; /* A "managed" object 00023 that does not treat this as a parent. In a parent-like way, 00024 When this is deleted, the browser is also. */ 00025 }; 00026 00027 #endif // #ifndef QOBJECTBROWSERACTION_H