src/gui/kernel/qaction.cpp File Reference

#include "qaction.h"
#include "qactiongroup.h"
#include "qaction_p.h"
#include "qapplication.h"
#include "qevent.h"
#include "qlist.h"
#include "qdebug.h"
#include <private/qshortcutmap_p.h>
#include <private/qapplication_p.h>
#include "moc_qaction.cpp"

Include dependency graph for qaction.cpp:

Go to the source code of this file.

Functions

static QString qt_strippedText (QString s)


Function Documentation

static QString qt_strippedText ( QString  s  )  [static]

Definition at line 39 of file qaction.cpp.

References QString::fromLatin1(), i, and s.

Referenced by QAction::iconText(), and QAction::toolTip().

00040 {
00041     s.remove( QString::fromLatin1("...") );
00042     int i = 0;
00043     while (i < s.size()) {
00044         ++i;
00045         if (s.at(i-1) != QLatin1Char('&'))
00046             continue;
00047         if (i < s.size() && s.at(i) == QLatin1Char('&'))
00048             ++i;
00049         s.remove(i-1,1);
00050     }
00051     return s.trimmed();
00052 };

Here is the call graph for this function:


Generated on Thu Mar 15 13:24:36 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1