BToolBar: Add a "text" parameter.

For defining the text that appears alongside the icon.

This function really has too many parameters; we probably should break
it out into a BAction class...
This commit is contained in:
Augustin Cavalier
2015-07-22 17:37:56 -04:00
parent 006fd65396
commit 58ee42e9df
3 changed files with 20 additions and 17 deletions
+2
View File
@@ -24,10 +24,12 @@ public:
void AddAction(uint32 command, BHandler* target,
const BBitmap* icon,
const char* toolTipText = NULL,
const char* text = NULL,
bool lockable = false);
void AddAction(BMessage* message, BHandler* target,
const BBitmap* icon,
const char* toolTipText = NULL,
const char* text = NULL,
bool lockable = false);
void AddSeparator();
void AddGlue();