diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-17 22:17:08 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-17 22:17:08 +0000 |
commit | f138d74fe16092003b06f5bde9663841929cde7f (patch) | |
tree | e9c497a0e59bc7d34264ac9404740d2ea76f3de4 /ksayit/src/contextmenuhandler.cpp | |
parent | 3a3c4b256baee79bdcfe72c5e01b9ded9b525900 (diff) | |
download | tdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.tar.gz tdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.zip |
TQt4 port kdeaccessibility
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1237325 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksayit/src/contextmenuhandler.cpp')
-rw-r--r-- | ksayit/src/contextmenuhandler.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ksayit/src/contextmenuhandler.cpp b/ksayit/src/contextmenuhandler.cpp index 26e8831..75f06e7 100644 --- a/ksayit/src/contextmenuhandler.cpp +++ b/ksayit/src/contextmenuhandler.cpp @@ -10,7 +10,7 @@ // // -// Qt includes +// TQt includes #include <tqfile.h> #include <tqvariant.h> @@ -31,12 +31,12 @@ ContextActionHandler::ContextActionHandler(ContextMenuHandler *menuhandler) : TQXmlDefaultHandler(), m_menuhandler(menuhandler) { - m_subName = TQString::null; - m_actionName = TQString::null; - m_qty = TQString::null; + m_subName = TQString(); + m_actionName = TQString(); + m_qty = TQString(); m_popup = menuhandler->m_popupmenu; m_hit = false; - m_searchID = TQString::null; + m_searchID = TQString(); } ContextActionHandler::~ContextActionHandler() @@ -117,8 +117,8 @@ bool ContextActionHandler::characters( const TQString &ch ) /** * MenuHandler */ -ContextMenuHandler::ContextMenuHandler(TQObject *parent, const char *name) - : TQObject(parent, name), m_DocTreeView(parent) +ContextMenuHandler::ContextMenuHandler(TQObject *tqparent, const char *name) + : TQObject(tqparent, name), m_DocTreeView(tqparent) { m_popupmenu = NULL; m_item = NULL; @@ -293,7 +293,7 @@ bool ContextMenuHandler::parseXmlFile(const TQString &xmlID) ContextActionHandler handler(this); handler.setSearchID(xmlID); parser.setContentHandler( &handler ); - return parser.parse( &xmlFile ); + return parser.parse( TQT_TQIODEVICE(&xmlFile) ); } @@ -307,7 +307,7 @@ KAction* ContextMenuHandler::ActionFactory( const TQString &actionName, const TQ // check if qty is within allowed limits ListViewInterface *i = static_cast<ListViewInterface*>(m_item->firstChild()); int count = 0; - TQString name = TQString::null; + TQString name = TQString(); while (i){ name = ( i->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString(); if ( name.lower() == actionName.lower() ){ @@ -378,9 +378,9 @@ KAction* ContextMenuHandler::ActionFactory( const TQString &actionName, const TQ } -KPopupMenu* ContextMenuHandler::SubMenuFactory(KPopupMenu *parent) +KPopupMenu* ContextMenuHandler::SubMenuFactory(KPopupMenu *tqparent) { - return new KPopupMenu(parent); + return new KPopupMenu(tqparent); } |