tools/designer/src/lib/shared/qdesigner_menu_p.h
changeset 7 f7bc934e204c
parent 0 1918ee327afb
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the Qt Designer of the Qt Toolkit.
     7 ** This file is part of the Qt Designer of the Qt Toolkit.
     8 **
     8 **
    55 
    55 
    56 #include "shared_global_p.h"
    56 #include "shared_global_p.h"
    57 
    57 
    58 #include <QtGui/QAction>
    58 #include <QtGui/QAction>
    59 #include <QtGui/QMenu>
    59 #include <QtGui/QMenu>
       
    60 #include <QtGui/QPixmap>
    60 #include <QtCore/QHash>
    61 #include <QtCore/QHash>
    61 
    62 
    62 QT_BEGIN_NAMESPACE
    63 QT_BEGIN_NAMESPACE
    63 
    64 
    64 class QTimer;
    65 class QTimer;
   181     void selectCurrentAction();
   182     void selectCurrentAction();
   182 
   183 
   183 private:
   184 private:
   184     bool hideSubMenuOnCursorKey();
   185     bool hideSubMenuOnCursorKey();
   185     bool showSubMenuOnCursorKey();
   186     bool showSubMenuOnCursorKey();
       
   187     const QPixmap m_subMenuPixmap;
   186 
   188 
   187     QPoint m_startPosition;
   189     QPoint m_startPosition;
   188     int m_currentIndex;
   190     int m_currentIndex;
   189     QAction *m_addItem;
   191     QAction *m_addItem;
   190     QAction *m_addSeparator;
   192     QAction *m_addSeparator;