summaryrefslogtreecommitdiff
path: root/library/qpeapplication.cpp
Unidiff
Diffstat (limited to 'library/qpeapplication.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 34f5e6a..d959c7a 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -1580,390 +1580,390 @@ void QPEApplication::systemMessage( const QCString& msg, const QByteArray& data
1580 } 1580 }
1581 1581
1582 1582
1583#endif 1583#endif
1584} 1584}
1585 1585
1586 1586
1587 1587
1588 1588
1589 1589
1590/*! 1590/*!
1591 \internal 1591 \internal
1592*/ 1592*/
1593bool QPEApplication::raiseAppropriateWindow() 1593bool QPEApplication::raiseAppropriateWindow()
1594{ 1594{
1595 bool r=FALSE; 1595 bool r=FALSE;
1596 1596
1597 // 1. Raise the main widget 1597 // 1. Raise the main widget
1598 QWidget *top = d->qpe_main_widget; 1598 QWidget *top = d->qpe_main_widget;
1599 if ( !top ) top = mainWidget(); 1599 if ( !top ) top = mainWidget();
1600 1600
1601 if ( top && d->keep_running ) { 1601 if ( top && d->keep_running ) {
1602 if ( top->isVisible() ) 1602 if ( top->isVisible() )
1603 r = TRUE; 1603 r = TRUE;
1604 else if (d->preloaded) { 1604 else if (d->preloaded) {
1605 // We are preloaded and not visible.. pretend we just started.. 1605 // We are preloaded and not visible.. pretend we just started..
1606#ifndef QT_NO_COP 1606#ifndef QT_NO_COP
1607 QCopEnvelope e("QPE/System", "fastAppShowing(QString)"); 1607 QCopEnvelope e("QPE/System", "fastAppShowing(QString)");
1608 e << d->appName; 1608 e << d->appName;
1609#endif 1609#endif
1610 } 1610 }
1611 1611
1612 d->show_mx(top,d->nomaximize, d->appName); 1612 d->show_mx(top,d->nomaximize, d->appName);
1613 top->raise(); 1613 top->raise();
1614 } 1614 }
1615 1615
1616 QWidget *topm = activeModalWidget(); 1616 QWidget *topm = activeModalWidget();
1617 1617
1618 // 2. Raise any parentless widgets (except top and topm, as they 1618 // 2. Raise any parentless widgets (except top and topm, as they
1619 // are raised before and after this loop). Order from most 1619 // are raised before and after this loop). Order from most
1620 // recently raised as deepest to least recently as top, so 1620 // recently raised as deepest to least recently as top, so
1621 // that repeated calls cycle through widgets. 1621 // that repeated calls cycle through widgets.
1622 QWidgetList *list = topLevelWidgets(); 1622 QWidgetList *list = topLevelWidgets();
1623 if ( list ) { 1623 if ( list ) {
1624 bool foundlast = FALSE; 1624 bool foundlast = FALSE;
1625 QWidget* topsub = 0; 1625 QWidget* topsub = 0;
1626 if ( d->lastraised ) { 1626 if ( d->lastraised ) {
1627 for (QWidget* w = list->first(); w; w = list->next()) { 1627 for (QWidget* w = list->first(); w; w = list->next()) {
1628 if ( !w->parentWidget() && w != topm && w->isVisible() && !w->isDesktop() ) { 1628 if ( !w->parentWidget() && w != topm && w->isVisible() && !w->isDesktop() ) {
1629 if ( w == d->lastraised ) 1629 if ( w == d->lastraised )
1630 foundlast = TRUE; 1630 foundlast = TRUE;
1631 if ( foundlast ) { 1631 if ( foundlast ) {
1632 w->raise(); 1632 w->raise();
1633 topsub = w; 1633 topsub = w;
1634 } 1634 }
1635 } 1635 }
1636 } 1636 }
1637 } 1637 }
1638 for (QWidget* w = list->first(); w; w = list->next()) { 1638 for (QWidget* w = list->first(); w; w = list->next()) {
1639 if ( !w->parentWidget() && w != topm && w->isVisible() && !w->isDesktop() ) { 1639 if ( !w->parentWidget() && w != topm && w->isVisible() && !w->isDesktop() ) {
1640 if ( w == d->lastraised ) 1640 if ( w == d->lastraised )
1641 break; 1641 break;
1642 w->raise(); 1642 w->raise();
1643 topsub = w; 1643 topsub = w;
1644 } 1644 }
1645 } 1645 }
1646 d->lastraised = topsub; 1646 d->lastraised = topsub;
1647 delete list; 1647 delete list;
1648 } 1648 }
1649 1649
1650 // 3. Raise the active modal widget. 1650 // 3. Raise the active modal widget.
1651 if ( topm ) { 1651 if ( topm ) {
1652 topm->show(); 1652 topm->show();
1653 topm->raise(); 1653 topm->raise();
1654 // If we haven't already handled the fastAppShowing message 1654 // If we haven't already handled the fastAppShowing message
1655 if (!top && d->preloaded) { 1655 if (!top && d->preloaded) {
1656#ifndef QT_NO_COP 1656#ifndef QT_NO_COP
1657 QCopEnvelope e("QPE/System", "fastAppShowing(QString)"); 1657 QCopEnvelope e("QPE/System", "fastAppShowing(QString)");
1658 e << d->appName; 1658 e << d->appName;
1659#endif 1659#endif
1660 } 1660 }
1661 r = FALSE; 1661 r = FALSE;
1662 } 1662 }
1663 1663
1664 return r; 1664 return r;
1665} 1665}
1666 1666
1667 1667
1668void QPEApplication::pidMessage( const QCString& msg, const QByteArray& data) 1668void QPEApplication::pidMessage( const QCString& msg, const QByteArray& data)
1669{ 1669{
1670#ifdef Q_WS_QWS 1670#ifdef Q_WS_QWS
1671 1671
1672 if ( msg == "quit()" ) { 1672 if ( msg == "quit()" ) {
1673 tryQuit(); 1673 tryQuit();
1674 } 1674 }
1675 else if ( msg == "quitIfInvisible()" ) { 1675 else if ( msg == "quitIfInvisible()" ) {
1676 if ( d->qpe_main_widget && !d->qpe_main_widget->isVisible() ) 1676 if ( d->qpe_main_widget && !d->qpe_main_widget->isVisible() )
1677 quit(); 1677 quit();
1678 } 1678 }
1679 else if ( msg == "close()" ) { 1679 else if ( msg == "close()" ) {
1680 hideOrQuit(); 1680 hideOrQuit();
1681 } 1681 }
1682 else if ( msg == "disablePreload()" ) { 1682 else if ( msg == "disablePreload()" ) {
1683 d->preloaded = FALSE; 1683 d->preloaded = FALSE;
1684 d->keep_running = TRUE; 1684 d->keep_running = TRUE;
1685 /* so that quit will quit */ 1685 /* so that quit will quit */
1686 } 1686 }
1687 else if ( msg == "enablePreload()" ) { 1687 else if ( msg == "enablePreload()" ) {
1688 if (d->qpe_main_widget) 1688 if (d->qpe_main_widget)
1689 d->preloaded = TRUE; 1689 d->preloaded = TRUE;
1690 d->keep_running = TRUE; 1690 d->keep_running = TRUE;
1691 /* so next quit won't quit */ 1691 /* so next quit won't quit */
1692 } 1692 }
1693 else if ( msg == "raise()" ) { 1693 else if ( msg == "raise()" ) {
1694 d->keep_running = TRUE; 1694 d->keep_running = TRUE;
1695 d->notbusysent = FALSE; 1695 d->notbusysent = FALSE;
1696 raiseAppropriateWindow(); 1696 raiseAppropriateWindow();
1697 // Tell the system we're still chugging along... 1697 // Tell the system we're still chugging along...
1698 QCopEnvelope e("QPE/System", "appRaised(QString)"); 1698 QCopEnvelope e("QPE/System", "appRaised(QString)");
1699 e << d->appName; 1699 e << d->appName;
1700 } 1700 }
1701 else if ( msg == "flush()" ) { 1701 else if ( msg == "flush()" ) {
1702 emit flush(); 1702 emit flush();
1703 // we need to tell the desktop 1703 // we need to tell the desktop
1704 QCopEnvelope e( "QPE/Desktop", "flushDone(QString)" ); 1704 QCopEnvelope e( "QPE/Desktop", "flushDone(QString)" );
1705 e << d->appName; 1705 e << d->appName;
1706 } 1706 }
1707 else if ( msg == "reload()" ) { 1707 else if ( msg == "reload()" ) {
1708 emit reload(); 1708 emit reload();
1709 } 1709 }
1710 else if ( msg == "setDocument(QString)" ) { 1710 else if ( msg == "setDocument(QString)" ) {
1711 d->keep_running = TRUE; 1711 d->keep_running = TRUE;
1712 QDataStream stream( data, IO_ReadOnly ); 1712 QDataStream stream( data, IO_ReadOnly );
1713 QString doc; 1713 QString doc;
1714 stream >> doc; 1714 stream >> doc;
1715 QWidget *mw = mainWidget(); 1715 QWidget *mw = mainWidget();
1716 if ( !mw ) 1716 if ( !mw )
1717 mw = d->qpe_main_widget; 1717 mw = d->qpe_main_widget;
1718 if ( mw ) 1718 if ( mw )
1719 Global::setDocument( mw, doc ); 1719 Global::setDocument( mw, doc );
1720 1720
1721 } else if ( msg == "QPEProcessQCop()" ) { 1721 } else if ( msg == "QPEProcessQCop()" ) {
1722 processQCopFile(); 1722 processQCopFile();
1723 d->sendQCopQ(); 1723 d->sendQCopQ();
1724 }else 1724 }else
1725 { 1725 {
1726 bool p = d->keep_running; 1726 bool p = d->keep_running;
1727 d->keep_running = FALSE; 1727 d->keep_running = FALSE;
1728 emit appMessage( msg, data); 1728 emit appMessage( msg, data);
1729 if ( d->keep_running ) { 1729 if ( d->keep_running ) {
1730 d->notbusysent = FALSE; 1730 d->notbusysent = FALSE;
1731 raiseAppropriateWindow(); 1731 raiseAppropriateWindow();
1732 if ( !p ) { 1732 if ( !p ) {
1733 // Tell the system we're still chugging along... 1733 // Tell the system we're still chugging along...
1734#ifndef QT_NO_COP 1734#ifndef QT_NO_COP
1735 QCopEnvelope e("QPE/System", "appRaised(QString)"); 1735 QCopEnvelope e("QPE/System", "appRaised(QString)");
1736 e << d->appName; 1736 e << d->appName;
1737#endif 1737#endif
1738 } 1738 }
1739 } 1739 }
1740 if ( p ) 1740 if ( p )
1741 d->keep_running = p; 1741 d->keep_running = p;
1742 } 1742 }
1743#endif 1743#endif
1744} 1744}
1745 1745
1746 1746
1747/*! 1747/*!
1748 Sets widget \a mw as the mainWidget() and shows it. For small windows, 1748 Sets widget \a mw as the mainWidget() and shows it. For small windows,
1749 consider passing TRUE for \a nomaximize rather than the default FALSE. 1749 consider passing TRUE for \a nomaximize rather than the default FALSE.
1750 1750
1751 \sa showMainDocumentWidget() 1751 \sa showMainDocumentWidget()
1752*/ 1752*/
1753void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize ) 1753void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize )
1754{ 1754{
1755// setMainWidget(mw); this breaks FastLoading because lastWindowClose() would quit 1755// setMainWidget(mw); this breaks FastLoading because lastWindowClose() would quit
1756 d->show(mw, nomaximize ); 1756 d->show(mw, nomaximize );
1757} 1757}
1758 1758
1759/*! 1759/*!
1760 Sets widget \a mw as the mainWidget() and shows it. For small windows, 1760 Sets widget \a mw as the mainWidget() and shows it. For small windows,
1761 consider passing TRUE for \a nomaximize rather than the default FALSE. 1761 consider passing TRUE for \a nomaximize rather than the default FALSE.
1762 1762
1763 This calls designates the application as 1763 This calls designates the application as
1764 a \link docwidget.html document-oriented\endlink application. 1764 a \link docwidget.html document-oriented\endlink application.
1765 1765
1766 The \a mw widget \e must have this slot: setDocument(const QString&). 1766 The \a mw widget \e must have this slot: setDocument(const QString&).
1767 1767
1768 \sa showMainWidget() 1768 \sa showMainWidget()
1769*/ 1769*/
1770void QPEApplication::showMainDocumentWidget( QWidget* mw, bool nomaximize ) 1770void QPEApplication::showMainDocumentWidget( QWidget* mw, bool nomaximize )
1771{ 1771{
1772 if ( mw && argc() == 2 ) 1772 if ( mw ) {
1773 Global::setDocument( mw, QString::fromUtf8(argv()[1]) ); 1773 if ( argc() == 2 )
1774 Global::setDocument( mw, QString::fromUtf8(argv()[1]) );
1774 1775
1775 1776 d->show(mw, nomaximize );
1776// setMainWidget(mw); see above 1777 }
1777 d->show(mw, nomaximize );
1778} 1778}
1779 1779
1780 1780
1781/*! 1781/*!
1782 If an application is started via a \link qcop.html QCop\endlink 1782 If an application is started via a \link qcop.html QCop\endlink
1783 message, the application will process the \link qcop.html 1783 message, the application will process the \link qcop.html
1784 QCop\endlink message and then quit. If the application calls this 1784 QCop\endlink message and then quit. If the application calls this
1785 function while processing a \link qcop.html QCop\endlink message, 1785 function while processing a \link qcop.html QCop\endlink message,
1786 after processing its outstanding \link qcop.html QCop\endlink 1786 after processing its outstanding \link qcop.html QCop\endlink
1787 messages the application will start 'properly' and show itself. 1787 messages the application will start 'properly' and show itself.
1788 1788
1789 \sa keepRunning() 1789 \sa keepRunning()
1790*/ 1790*/
1791void QPEApplication::setKeepRunning() 1791void QPEApplication::setKeepRunning()
1792{ 1792{
1793 if ( qApp && qApp->inherits( "QPEApplication" ) ) { 1793 if ( qApp && qApp->inherits( "QPEApplication" ) ) {
1794 QPEApplication * qpeApp = ( QPEApplication* ) qApp; 1794 QPEApplication * qpeApp = ( QPEApplication* ) qApp;
1795 qpeApp->d->keep_running = TRUE; 1795 qpeApp->d->keep_running = TRUE;
1796 } 1796 }
1797} 1797}
1798 1798
1799/*! 1799/*!
1800 Returns TRUE if the application will quit after processing the 1800 Returns TRUE if the application will quit after processing the
1801 current list of qcop messages; otherwise returns FALSE. 1801 current list of qcop messages; otherwise returns FALSE.
1802 1802
1803 \sa setKeepRunning() 1803 \sa setKeepRunning()
1804*/ 1804*/
1805bool QPEApplication::keepRunning() const 1805bool QPEApplication::keepRunning() const
1806{ 1806{
1807 return d->keep_running; 1807 return d->keep_running;
1808} 1808}
1809 1809
1810/*! 1810/*!
1811 \internal 1811 \internal
1812*/ 1812*/
1813void QPEApplication::internalSetStyle( const QString &style ) 1813void QPEApplication::internalSetStyle( const QString &style )
1814{ 1814{
1815#if QT_VERSION >= 0x030000 1815#if QT_VERSION >= 0x030000
1816 if ( style == "QPE" ) { 1816 if ( style == "QPE" ) {
1817 setStyle( new QPEStyle ); 1817 setStyle( new QPEStyle );
1818 } 1818 }
1819 else { 1819 else {
1820 QStyle *s = QStyleFactory::create( style ); 1820 QStyle *s = QStyleFactory::create( style );
1821 if ( s ) 1821 if ( s )
1822 setStyle( s ); 1822 setStyle( s );
1823 } 1823 }
1824#else 1824#else
1825 if ( style == "Windows" ) { 1825 if ( style == "Windows" ) {
1826 setStyle( new QWindowsStyle ); 1826 setStyle( new QWindowsStyle );
1827 } 1827 }
1828 else if ( style == "QPE" ) { 1828 else if ( style == "QPE" ) {
1829 setStyle( new QPEStyle ); 1829 setStyle( new QPEStyle );
1830 } 1830 }
1831 else if ( style == "Light" ) { 1831 else if ( style == "Light" ) {
1832 setStyle( new LightStyle ); 1832 setStyle( new LightStyle );
1833 } 1833 }
1834#ifndef QT_NO_STYLE_PLATINUM 1834#ifndef QT_NO_STYLE_PLATINUM
1835 else if ( style == "Platinum" ) { 1835 else if ( style == "Platinum" ) {
1836 setStyle( new QPlatinumStyle ); 1836 setStyle( new QPlatinumStyle );
1837 } 1837 }
1838#endif 1838#endif
1839#ifndef QT_NO_STYLE_MOTIF 1839#ifndef QT_NO_STYLE_MOTIF
1840 else if ( style == "Motif" ) { 1840 else if ( style == "Motif" ) {
1841 setStyle( new QMotifStyle ); 1841 setStyle( new QMotifStyle );
1842 } 1842 }
1843#endif 1843#endif
1844#ifndef QT_NO_STYLE_MOTIFPLUS 1844#ifndef QT_NO_STYLE_MOTIFPLUS
1845 else if ( style == "MotifPlus" ) { 1845 else if ( style == "MotifPlus" ) {
1846 setStyle( new QMotifPlusStyle ); 1846 setStyle( new QMotifPlusStyle );
1847 } 1847 }
1848#endif 1848#endif
1849 1849
1850 else { 1850 else {
1851 QStyle *sty = 0; 1851 QStyle *sty = 0;
1852 QString path = QPEApplication::qpeDir ( ) + "plugins/styles/"; 1852 QString path = QPEApplication::qpeDir ( ) + "plugins/styles/";
1853 1853
1854#ifdef Q_OS_MACX 1854#ifdef Q_OS_MACX
1855 if ( style. find ( ".dylib" ) > 0 ) 1855 if ( style. find ( ".dylib" ) > 0 )
1856 path += style; 1856 path += style;
1857 else 1857 else
1858 path = path + "lib" + style. lower ( ) + ".dylib"; // compatibility 1858 path = path + "lib" + style. lower ( ) + ".dylib"; // compatibility
1859#else 1859#else
1860 if ( style. find ( ".so" ) > 0 ) 1860 if ( style. find ( ".so" ) > 0 )
1861 path += style; 1861 path += style;
1862 else 1862 else
1863 path = path + "lib" + style. lower ( ) + ".so"; // compatibility 1863 path = path + "lib" + style. lower ( ) + ".so"; // compatibility
1864#endif 1864#endif
1865 static QLibrary *lastlib = 0; 1865 static QLibrary *lastlib = 0;
1866 static StyleInterface *lastiface = 0; 1866 static StyleInterface *lastiface = 0;
1867 1867
1868 QLibrary *lib = new QLibrary ( path ); 1868 QLibrary *lib = new QLibrary ( path );
1869 StyleInterface *iface = 0; 1869 StyleInterface *iface = 0;
1870 1870
1871 if (( lib-> queryInterface ( IID_Style, ( QUnknownInterface ** ) &iface ) == QS_OK ) && iface ) 1871 if (( lib-> queryInterface ( IID_Style, ( QUnknownInterface ** ) &iface ) == QS_OK ) && iface )
1872 sty = iface-> style ( ); 1872 sty = iface-> style ( );
1873 1873
1874 if ( sty ) { 1874 if ( sty ) {
1875 setStyle ( sty ); 1875 setStyle ( sty );
1876 1876
1877 if ( lastiface ) 1877 if ( lastiface )
1878 lastiface-> release ( ); 1878 lastiface-> release ( );
1879 lastiface = iface; 1879 lastiface = iface;
1880 1880
1881 if ( lastlib ) { 1881 if ( lastlib ) {
1882 lastlib-> unload ( ); 1882 lastlib-> unload ( );
1883 delete lastlib; 1883 delete lastlib;
1884 } 1884 }
1885 lastlib = lib; 1885 lastlib = lib;
1886 } 1886 }
1887 else { 1887 else {
1888 if ( iface ) 1888 if ( iface )
1889 iface-> release ( ); 1889 iface-> release ( );
1890 delete lib; 1890 delete lib;
1891 1891
1892 setStyle ( new LightStyle ( )); 1892 setStyle ( new LightStyle ( ));
1893 } 1893 }
1894 } 1894 }
1895#endif 1895#endif
1896} 1896}
1897 1897
1898/*! 1898/*!
1899 \internal 1899 \internal
1900*/ 1900*/
1901void QPEApplication::prepareForTermination( bool willrestart ) 1901void QPEApplication::prepareForTermination( bool willrestart )
1902{ 1902{
1903 if ( willrestart ) { 1903 if ( willrestart ) {
1904 QLabel *lblWait = new QLabel( tr( "Please wait..." ), 0, "wait hack", QWidget::WStyle_Customize | 1904 QLabel *lblWait = new QLabel( tr( "Please wait..." ), 0, "wait hack", QWidget::WStyle_Customize |
1905 QWidget::WStyle_NoBorder | QWidget::WStyle_Tool ); 1905 QWidget::WStyle_NoBorder | QWidget::WStyle_Tool );
1906 lblWait->setAlignment( QWidget::AlignCenter ); 1906 lblWait->setAlignment( QWidget::AlignCenter );
1907 lblWait->show(); 1907 lblWait->show();
1908 lblWait->showMaximized(); 1908 lblWait->showMaximized();
1909 } 1909 }
1910 { QCopEnvelope envelope( "QPE/System", "forceQuit()" ); 1910 { QCopEnvelope envelope( "QPE/System", "forceQuit()" );
1911 } 1911 }
1912 processEvents(); // ensure the message goes out. 1912 processEvents(); // ensure the message goes out.
1913} 1913}
1914 1914
1915/*! 1915/*!
1916 \internal 1916 \internal
1917*/ 1917*/
1918void QPEApplication::shutdown() 1918void QPEApplication::shutdown()
1919{ 1919{
1920 // Implement in server's QPEApplication subclass 1920 // Implement in server's QPEApplication subclass
1921} 1921}
1922 1922
1923/*! 1923/*!
1924 \internal 1924 \internal
1925*/ 1925*/
1926void QPEApplication::restart() 1926void QPEApplication::restart()
1927{ 1927{
1928 // Implement in server's QPEApplication subclass 1928 // Implement in server's QPEApplication subclass
1929} 1929}
1930 1930
1931static QPtrDict<void>* stylusDict = 0; 1931static QPtrDict<void>* stylusDict = 0;
1932static void createDict() 1932static void createDict()
1933{ 1933{
1934 if ( !stylusDict ) 1934 if ( !stylusDict )
1935 stylusDict = new QPtrDict<void>; 1935 stylusDict = new QPtrDict<void>;
1936} 1936}
1937 1937
1938/*! 1938/*!
1939 Returns the current StylusMode for widget \a w. 1939 Returns the current StylusMode for widget \a w.
1940 1940
1941 \sa setStylusOperation() StylusMode 1941 \sa setStylusOperation() StylusMode
1942*/ 1942*/
1943QPEApplication::StylusMode QPEApplication::stylusOperation( QWidget* w ) 1943QPEApplication::StylusMode QPEApplication::stylusOperation( QWidget* w )
1944{ 1944{
1945 if ( stylusDict ) 1945 if ( stylusDict )
1946 return ( StylusMode ) ( int ) stylusDict->find( w ); 1946 return ( StylusMode ) ( int ) stylusDict->find( w );
1947 return LeftOnly; 1947 return LeftOnly;
1948} 1948}
1949 1949
1950/*! 1950/*!
1951 \enum QPEApplication::StylusMode 1951 \enum QPEApplication::StylusMode
1952 1952
1953 \value LeftOnly the stylus only generates LeftButton 1953 \value LeftOnly the stylus only generates LeftButton
1954 events (the default). 1954 events (the default).
1955 \value RightOnHold the stylus generates RightButton events 1955 \value RightOnHold the stylus generates RightButton events
1956 if the user uses the press-and-hold gesture. 1956 if the user uses the press-and-hold gesture.
1957 1957
1958 \sa setStylusOperation() stylusOperation() 1958 \sa setStylusOperation() stylusOperation()
1959*/ 1959*/
1960 1960
1961/*! 1961/*!
1962 Causes widget \a w to receive mouse events according to the stylus 1962 Causes widget \a w to receive mouse events according to the stylus
1963 \a mode. 1963 \a mode.
1964 1964
1965 \sa stylusOperation() StylusMode 1965 \sa stylusOperation() StylusMode
1966*/ 1966*/
1967void QPEApplication::setStylusOperation( QWidget * w, StylusMode mode ) 1967void QPEApplication::setStylusOperation( QWidget * w, StylusMode mode )
1968{ 1968{
1969 createDict(); 1969 createDict();