/** Constructor */ ProfileView::ProfileView(QWidget *parent) : QDialog(parent) { /* Invoke the Qt Designer generated object setup routine */ ui.setupUi(this); connect( ui.photoLabel, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( imageCustomPopupMenu( QPoint ) ) ); connect( ui.profileTreeWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( profileCustomPopupMenu( QPoint ) ) ); connect( ui.fileTreeWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( fileCustomPopupMenu( QPoint ) ) ); // // connect up the buttons. connect(ui.closeButton, SIGNAL(clicked()), this, SLOT(closeView())); connect(ui.profileditButton, SIGNAL(clicked()), this, SLOT(profileEdit())); loadAvatar(); /* Hide platform specific features */ #ifdef Q_WS_WIN #endif }
/** Constructor */ ProfileEdit::ProfileEdit(QWidget *parent) : QDialog(parent) { /* Invoke the Qt Designer generated object setup routine */ ui.setupUi(this); connect( ui.profileTreeWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( profileCustomPopupMenu( QPoint ) ) ); // connect up the buttons. connect(ui.addButton, SIGNAL(clicked()), this, SLOT(profileEntryAdd())); connect(ui.moveDownButton, SIGNAL(clicked()), this, SLOT(profileEntryMoveDown())); connect(ui.moveUpButton, SIGNAL(clicked()), this, SLOT(profileEntryMoveUp())); connect(ui.closeButton, SIGNAL(clicked()), this, SLOT(close())); /* Hide platform specific features */ #ifdef Q_WS_WIN #endif }