Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
label.cpp
Go to the documentation of this file.
1
#include <QFileInfo>
2
3
#include "
label.h
"
4
5
Label::Label
( QString filePath, QWidget *parent ) : QLabel( parent ), filePath( filePath ), m_pixmap( QPixmap(
6
filePath ) ) {
7
}
8
9
void
Label::mousePressEvent
( QMouseEvent* ) {
10
QFileInfo info(
filePath
);
11
12
emit
Image
(
m_pixmap
, info.fileName( ) );
13
}
Label::mousePressEvent
void mousePressEvent(QMouseEvent *)
Definition:
label.cpp:9
Label::m_pixmap
QPixmap m_pixmap
Definition:
label.h:12
Label::Image
void Image(const QPixmap &, const QString &)
label.h
Label::Label
Label(QString filePath, QWidget *parent=0)
Definition:
label.cpp:5
Label::filePath
QString filePath
Definition:
label.h:11
BIAL-GUI
src
label.cpp
Generated by
1.8.11