~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/sharebox/CShareBox.cpp

  • Committer: Mateo Salta
  • Date: 2012-12-03 01:37:39 UTC
  • Revision ID: mateo_salta@yahoo.com-20121203013739-nloffhc2uqy1gil4
Copied over sharebox resources for user editing

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    setAcceptDrops(true);
55
55
    setWindowTitle("NitroShare Share Box"); /* Ideally this is never seen anywhere. */
56
56
 
 
57
    /* Copy over sharebox elements for user replacement and editing. */
 
58
    QFile::copy(":/images/multiple.png", ".nitroshare/multiple.png");
 
59
    QFile::copy(":/images/single.png", ".nitroshare/single.png");
 
60
    QFile::copy(":/images/sharebox.png", ".nitroshare/sharebox.png");
 
61
 
57
62
    Init();
58
63
}
59
64
 
191
196
    painter.scale(m_draw_scale, m_draw_scale);
192
197
 
193
198
    /* First draw the background. */
194
 
    painter.drawPixmap(0, 0, 256, 256, QPixmap(":/images/sharebox.png"));
 
199
    painter.drawPixmap(0, 0, 256, 256, QPixmap(".nitroshare/sharebox.png"));
195
200
 
196
201
    /* Then draw the blue border if applicable. */
197
202
    if(m_highlight)
251
256
    }
252
257
 
253
258
    /* Lastly draw the icon. */
254
 
    painter.drawPixmap(80, 16, 96, 96, QPixmap(m_id.isEmpty()?":/images/multiple.png":":/images/single.png"));
 
259
    painter.drawPixmap(80, 16, 96, 96, QPixmap(m_id.isEmpty()?".nitroshare/multiple.png":".nitroshare/single.png"));
255
260
}