Show popup menu also when right-clicking the load meter. It was a blind spot. Added the virtual keyword to the other two load meter view hooks.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24313 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
002b33b720
commit
7bed483ae2
@ -68,6 +68,14 @@ ProgressBar::AttachedToWindow()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ProgressBar::MouseDown(BPoint point)
|
||||||
|
{
|
||||||
|
point = ConvertToParent(point);
|
||||||
|
Parent()->MouseDown(point);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ProgressBar::Set(int32 value)
|
ProgressBar::Set(int32 value)
|
||||||
{
|
{
|
||||||
|
@ -24,10 +24,11 @@ typedef struct {
|
|||||||
class ProgressBar : public BView {
|
class ProgressBar : public BView {
|
||||||
public:
|
public:
|
||||||
ProgressBar(BRect r, char* name);
|
ProgressBar(BRect r, char* name);
|
||||||
void Draw(BRect rect);
|
virtual void Draw(BRect rect);
|
||||||
void Set(int32 value);
|
void Set(int32 value);
|
||||||
void UpdateColors(int32 color, bool fade);
|
void UpdateColors(int32 color, bool fade);
|
||||||
void AttachedToWindow();
|
virtual void AttachedToWindow();
|
||||||
|
virtual void MouseDown(BPoint point);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
PROGRESS_WIDTH = 146,
|
PROGRESS_WIDTH = 146,
|
||||||
|
Loading…
Reference in New Issue
Block a user