
| The Following User Says Thank You to CepiPerez For This Useful Post: | ||
| The Following User Says Thank You to nicolai For This Useful Post: | ||
Didn't know there was an input mask for hexes already existing
#ifndef MYLINEEDIT_H
#define MYLINEEDIT_H
#include <QLineEdit>
class MyLineEdit : public QLineEdit
{
Q_OBJECT
public:
MyLineEdit(QWidget *parent = 0);
protected:
void focusOutEvent(QFocusEvent *event);
void focusInEvent(QFocusEvent *event);
};
#endif // MYLINEEDIT_H
#include "mylineedit.h"
MyLineEdit::MyLineEdit(QWidget *parent) :
QLineEdit(parent)
{
}
void MyLineEdit::focusInEvent(QFocusEvent *event)
{
//Save text from line edit
}
void MyLineEdit::focusOutEvent(QFocusEvent *event)
{
//Restore text if it is not valid
}
| The Following User Says Thank You to Diph For This Useful Post: | ||
CONFIG += link_pkgconfig PKGCONFIG += gq-gconf


system("gconftool-2 -R /apps/osso/hildon-desktop/views");
current = 1 active = [1,2,3,4] /apps/osso/hildon-desktop/views/1: bg-image = /home/user/MyDocs/.images/abstract1_01.jpg /apps/osso/hildon-desktop/views/2: bg-image = /home/user/MyDocs/.images/abstract1_02.jpg /apps/osso/hildon-desktop/views/3: bg-image = /home/user/MyDocs/.images/abstract1_03.jpg /apps/osso/hildon-desktop/views/4: bg-image = /home/user/MyDocs/.images/abstract1_04.jpg
system('gconftool -s /apps/osso/hildon-desktop/views/1/bg-image -t string "/home/user/MyDocs/.images/abstract1_01.jpg"');
| The Following User Says Thank You to Berserk For This Useful Post: | ||