![]() |
Miam-Player
0.8.0
A nice music player
|
The AddressBarMenu class is like a popup menu which displays subdirectories. More...
#include <addressbarmenu.h>
Public Types | |
enum | SeparatorEnum { Separator = Qt::UserRole + 1 } |
Public Slots | |
void | clear () |
void | show () |
Public Member Functions | |
AddressBarMenu (AddressBar *addressBar) | |
bool | eventFilter (QObject *, QEvent *e) |
bool | hasSeparator () const |
void | insertSeparator () |
void | moveOrHide (const AddressBarButton *b) |
Protected Member Functions | |
virtual void | mouseMoveEvent (QMouseEvent *e) |
virtual void | paintEvent (QPaintEvent *) |
The AddressBarMenu class is like a popup menu which displays subdirectories.
When this menu is opened, it shows every subfolders under the current highlighted button. Items are layed out in a list, with a scrollbar if lots of subdirectories are present. If one is moving the cursor from one button to another one, then the content of this menu is updated with the previous / next highlighted button. Folders are painted with the icon provided by your operating system, and disabled if it's not readable (like an external drive not ready nor mounted).
|
explicit |
|
slot |
bool AddressBarMenu::eventFilter | ( | QObject * | , |
QEvent * | e | ||
) |
XXX: wtf notify() is not working?
|
inline |
void AddressBarMenu::insertSeparator | ( | ) |
|
protectedvirtual |
Redefined to force update the viewport.
void AddressBarMenu::moveOrHide | ( | const AddressBarButton * | b | ) |
|
protectedvirtual |
Redefined to be able to display items with the current theme.
|
slot |