diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-16 00:57:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-16 00:57:59 +0300 |
commit | ae9577c6a52a1e4eb1ff647905672ca840ad3e44 (patch) | |
tree | 172eeedbaea5004a92f100dee37a43ffb8d27672 /src/gui/widgets/browserbox.cpp | |
parent | c91bc5201596eda73f9df2222d76d9f413426a85 (diff) | |
download | mv-ae9577c6a52a1e4eb1ff647905672ca840ad3e44.tar.gz mv-ae9577c6a52a1e4eb1ff647905672ca840ad3e44.tar.bz2 mv-ae9577c6a52a1e4eb1ff647905672ca840ad3e44.tar.xz mv-ae9577c6a52a1e4eb1ff647905672ca840ad3e44.zip |
Simplify menu creation in popupmenu class.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index c20eb4622..1419e213c 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -256,6 +256,11 @@ void BrowserBox::addRow(const std::string &row, bool atTop) updateHeight(); } +void BrowserBox::addRow(const std::string &cmd, char *text) +{ + addRow(strprintf("@@%s|%s@@", cmd.c_str(), text)); +} + void BrowserBox::addImage(const std::string &path) { if (!mEnableImages) |