File: iconlabel.cpp

package info (click to toggle)
kascade 1.0-beta10-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 964 kB
  • ctags: 815
  • sloc: cpp: 7,780; makefile: 39
file content (22 lines) | stat: -rw-r--r-- 375 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <qlabel.h>
#include <qwidget.h>
#include <qevent.h>
#include <qmainwindow.h>
#include <stdio.h>

#include "iconlabel.h"

class Category;

IconLabel::IconLabel( QWidget *parent ) : QLabel( parent )
{
	show();
}

void IconLabel::mousePressEvent( QMouseEvent *event )
{
	if( event->button() == RightButton ) 
		emit rightMenu( event->globalX(), event->globalY() );
}