~ubuntu-branches/ubuntu/vivid/fcitx-qimpanel/vivid-proposed

« back to all changes in this revision

Viewing changes to skin/skinbase.cpp

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-12-17 00:59:53 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131217005953-jk1r6w2gyxjzqidd
Tags: 0.1.3-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    //横排配置填默认值
37
37
    mTipsImg = "";
38
38
    mInputBackImg = "";
 
39
    mCustomImg0 = "";
 
40
    mCustomImg1 = "";
39
41
    mMarginLeft = 0;
40
42
    mMarginRight = 0;
41
43
    mMarginTop = 0;
68
70
    //竖排配置填写零值,而不是默认值,因为在实际使用时,如果判断其为零值,那么会自动返回对应的横排值
69
71
    mTipsImgVertical = "";
70
72
    mInputBackImgVertical = "";
 
73
    mCustomImgVertical0 = "";
 
74
    mCustomImgVertical1 = "";
71
75
    mMarginLeftVertical = 0;
72
76
    mMarginRightVertical = 0;
73
77
    mMarginTopVertical = 0;
117
121
void SkinBase::reloadSkin()
118
122
{
119
123
    emit inputBackImgChanged();
 
124
    emit customImg0Changed();
 
125
    emit customImg1Changed();
120
126
    emit tipsImgChanged();
121
127
    emit marginLeftChanged();
122
128
    emit marginRightChanged();
157
163
        return mInputBackImgVertical;
158
164
}
159
165
 
 
166
void SkinBase::setCustomImg0(const QString customImg)
 
167
{
 
168
    mCustomImg0 = customImg;
 
169
}
 
170
 
 
171
QString SkinBase::customImg0() const
 
172
{
 
173
    if (MainModel::self()->isHorizontal() || mCustomImgVertical0 == "")
 
174
        return mCustomImg0;
 
175
    else
 
176
        return mCustomImgVertical0;
 
177
}
 
178
 
 
179
void SkinBase::setCustomImg1(const QString customImg)
 
180
{
 
181
    mCustomImg1 = customImg;
 
182
}
 
183
 
 
184
QString SkinBase::customImg1() const
 
185
{
 
186
    if (MainModel::self()->isHorizontal() || mCustomImgVertical1 == "")
 
187
        return mCustomImg1;
 
188
    else
 
189
        return mCustomImgVertical1;
 
190
}
 
191
 
160
192
void SkinBase::setTipsImg(const QString tipsImg)
161
193
{
162
194
    mTipsImg = tipsImg;