menulistview.h
来自「KphoneSI (kpsi) is a SIP (Session Initia」· C头文件 代码 · 共 49 行
H
49 行
#ifndef MENULISTVIEW_H_INCLUDED#define MENULISTVIEW_H_INCLUDED#include <qlistview.h>#include <qpopupmenu.h>/** * @short ListView with a right-click menu. * @author Billy Biggs <vektor@div8.net> * * MenuListView is an extension of QListView which provides a right-click * popup menu. The click handling and menu are provided by MenuListView. */class MenuListView : public QListView{ Q_OBJECTpublic: /** * Constructs a MenuListView. */ MenuListView( QWidget *parent = 0, const char *name = 0 ); /** * Destructor for MenuListView. */ ~MenuListView( void ); /** * Add an item to the menu with description desc * and connect it to the provided slot. */ void addMenuItem( QString desc, const QObject *reciever, const char *member ); /** * Inserts a separator into the menu. */ void addMenuSeparator( void );private slots: void showMenu( QListViewItem *curi, const QPoint& pos, int );private: QPopupMenu *ops;};#endif // MENULISTVIEW_H_INCLUDED
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?