added icon
This commit is contained in:
parent
e8a08a1896
commit
ec42d3c247
@ -53,6 +53,8 @@ using namespace std;
|
|||||||
#include <qmessagebox.h>
|
#include <qmessagebox.h>
|
||||||
#include <qdialog.h>
|
#include <qdialog.h>
|
||||||
#include <qvaluevector.h>
|
#include <qvaluevector.h>
|
||||||
|
#include <qimage.h>
|
||||||
|
#include <qpixmap.h>
|
||||||
|
|
||||||
#include "PTextEdit.h"
|
#include "PTextEdit.h"
|
||||||
#include "PSubTextEdit.h"
|
#include "PSubTextEdit.h"
|
||||||
@ -63,6 +65,35 @@ using namespace std;
|
|||||||
#include "forms/PMusrGuiAbout.h"
|
#include "forms/PMusrGuiAbout.h"
|
||||||
#include "PMlog2DbDialog.h"
|
#include "PMlog2DbDialog.h"
|
||||||
|
|
||||||
|
/* XPM */
|
||||||
|
static const char * const musrfit_xpm[] = {
|
||||||
|
"22 22 3 1",
|
||||||
|
" c None",
|
||||||
|
". c #FF0000",
|
||||||
|
"+ c #000000",
|
||||||
|
" ... ",
|
||||||
|
" +... . ",
|
||||||
|
" .+ ...+. ",
|
||||||
|
" ... . ... ",
|
||||||
|
" ... ... ",
|
||||||
|
" ... ... ",
|
||||||
|
"+ . .+ ",
|
||||||
|
" .+ ",
|
||||||
|
" . ",
|
||||||
|
" ... ",
|
||||||
|
" ... . ",
|
||||||
|
" ...+ . ",
|
||||||
|
" . + ... ",
|
||||||
|
" ...++... ",
|
||||||
|
"++++ + +++++... ... ",
|
||||||
|
"+ + + ... .+ ",
|
||||||
|
"+ + + . ",
|
||||||
|
"++++ + + ...",
|
||||||
|
"+ + + ...",
|
||||||
|
"+ + + ...",
|
||||||
|
"+ + + . ",
|
||||||
|
" "};
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@ -88,6 +119,10 @@ PTextEdit::PTextEdit( QWidget *parent, const char *name )
|
|||||||
textFamily("Courier");
|
textFamily("Courier");
|
||||||
textSize("11"); // 11pt
|
textSize("11"); // 11pt
|
||||||
|
|
||||||
|
QImage img(musrfit_xpm);
|
||||||
|
QPixmap image0 = img;
|
||||||
|
setIcon( image0 );
|
||||||
|
|
||||||
if ( qApp->argc() != 1 ) {
|
if ( qApp->argc() != 1 ) {
|
||||||
for ( int i = 1; i < qApp->argc(); ++i )
|
for ( int i = 1; i < qApp->argc(); ++i )
|
||||||
load( qApp->argv()[ i ] );
|
load( qApp->argv()[ i ] );
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
<property name="sizeGripEnabled">
|
<property name="sizeGripEnabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="modal">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<widget class="QLabel">
|
<widget class="QLabel">
|
||||||
<property name="name">
|
<property name="name">
|
||||||
<cstring>fTitle_textLabel</cstring>
|
<cstring>fTitle_textLabel</cstring>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user