removed all old Qt3 depedencies, Qt3Support is not longer needed
git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@92 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -97,7 +97,7 @@ for(int i=0;i<str.size();i++){
|
||||
Found '{' without closing '}'").arg(i+10);
|
||||
return;
|
||||
}
|
||||
templateToKeysyms(tmpl.lower(),Keys,entry);
|
||||
templateToKeysyms(tmpl.toLower(),Keys,entry);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -357,7 +357,7 @@ DragPixmap.fill(QColor(255,255,255));
|
||||
QPainter painter(&DragPixmap);
|
||||
painter.setPen(QColor(0,0,0));
|
||||
painter.setFont(DragItems[0]->font(0));
|
||||
painter.drawPixmap(0,0,DragItems[0]->icon(0).pixmap());
|
||||
painter.drawPixmap(0,0,DragItems[0]->icon(0).pixmap(QSize(16,16)));
|
||||
painter.drawText(19,DragPixmHeight-fontmet.strikeOutPos(),DragText);
|
||||
QMimeData *mimeData = new QMimeData;
|
||||
void* pDragItems=&DragItems;
|
||||
|
||||
@@ -196,7 +196,7 @@ void KeepassGroupView::mouseMoveEvent(QMouseEvent *event){
|
||||
QPainter painter(&DragPixmap);
|
||||
painter.setPen(QColor(0,0,0));
|
||||
painter.setFont(DragItem->font(0));
|
||||
painter.drawPixmap(0,0,DragItem->icon(0).pixmap());
|
||||
painter.drawPixmap(0,0,DragItem->icon(0).pixmap(QSize(16,16)));
|
||||
painter.drawText(19,DragPixmHeight-fontmet.strikeOutPos(),DragItem->text(0));
|
||||
QMimeData *mimeData = new QMimeData;
|
||||
mimeData->setData("keepass/group",QByteArray((char*)&(DragItem->pGroup),sizeof(void*)));
|
||||
|
||||
@@ -21,17 +21,20 @@
|
||||
|
||||
#include "UrlLabel.h"
|
||||
#include "main.h"
|
||||
#include <qfont.h>
|
||||
#include <qcolor.h>
|
||||
#include <qcursor.h>
|
||||
#include <qfontmetrics.h>
|
||||
#include <QFont>
|
||||
#include <QColor>
|
||||
#include <QCursor>
|
||||
#include <QFontMetrics>
|
||||
#include <QMouseEvent>
|
||||
#include <QLabel>
|
||||
#include <QPalette>
|
||||
|
||||
LinkLabel::LinkLabel(QWidget *parent, const char* name,const QString& text, int x, int y,Qt::WFlags f) : QLabel(parent,name,f){
|
||||
LinkLabel::LinkLabel(QWidget *parent,const QString& text, int x, int y,Qt::WFlags f) : QLabel(parent,f){
|
||||
QFont font(parentWidget()->font()); font.setUnderline(true);
|
||||
setFont(font);
|
||||
setPaletteForegroundColor(QColor(20,20,255));
|
||||
QPalette palette;
|
||||
palette.setColor(foregroundRole(),QColor(20,20,255));
|
||||
setPalette(palette);
|
||||
setCursor(Qt::PointingHandCursor);
|
||||
setText(text);
|
||||
setPos(x,y);
|
||||
|
||||
@@ -20,14 +20,13 @@
|
||||
|
||||
#ifndef _LINKLABEL_H_
|
||||
#define _LINKLABEL_H_
|
||||
#include <qlabel.h>
|
||||
#include <q3signal.h>
|
||||
#include <QLabel>
|
||||
#include <QMouseEvent>
|
||||
|
||||
class LinkLabel : public QLabel{
|
||||
Q_OBJECT
|
||||
public:
|
||||
LinkLabel(QWidget *parent, const char* name = 0,const QString& text=QString::null, int x=0, int y=0,Qt::WFlags f=0);
|
||||
LinkLabel(QWidget *parent,const QString& text=QString::null, int x=0, int y=0,Qt::WFlags f=0);
|
||||
~LinkLabel();
|
||||
void setPos(int x,int y);
|
||||
QString url();
|
||||
|
||||
Reference in New Issue
Block a user