View Single Post
Posts: 397 | Thanked: 185 times | Joined on Oct 2011
#2786
Originally Posted by nicodonte View Post
Last release of Cepi has problems with media sharing buttons, all of them launch SendPicture, to fix this, edit Conversation.qml

From:
Code:
			Button {
	    		id: image_button
	    		iconSource: theme.inverted ? "../common/images/image-white.png" : "../common/images/image.png
	    		width: mediaContentSlip.width == 328 ? 44 : 0
				visible: width == 44 ? true : false
	    		height: width
	    		anchors.right: video_button.left
	    		anchors.rightMargin: 10
	    		anchors.verticalCenter: parent.verticalCenter
	    		onClicked: {
					mediaContentSlipOff.start();
					pageStack.push(sendPicture)
				}		
			}	
			Button {
				id: video_button
				iconSource: theme.inverted ? "../common/images/video-white.png" : "../common/images/video.png"
	    		width: mediaContentSlip.width == 328 ? 44 : 0
				visible: width == 44 ? true : false
	    		height: width
	    		anchors.right: audio_button.left
	    		anchors.rightMargin: 10
	    		anchors.verticalCenter: parent.verticalCenter
	    		onClicked: {
					mediaContentSlipOff.start();
					pageStack.push(sendPicture)
				}
			}

			Button {
				id: audio_button
				iconSource: theme.inverted ? "../common/images/audio-white.png" : "../common/images/audio.png"
	    		width: mediaContentSlip.width == 328 ? 44 : 0
				visible: width == 44 ? true : false
	    		height: width
	    		anchors.right: location_button.left
	    		anchors.rightMargin: 10
	    		anchors.verticalCenter: parent.verticalCenter
				onClicked: {
					mediaContentSlipOff.start();
					pageStack.push(sendPicture)
				}
			}
To:
Code:
			Button {
	    		id: image_button
	    		iconSource: theme.inverted ? "../common/images/image-white.png" : "../common/images/image.png"
	    		width: mediaContentSlip.width == 328 ? 44 : 0
				visible: width == 44 ? true : false
	    		height: width
	    		anchors.right: video_button.left
	    		anchors.rightMargin: 10
	    		anchors.verticalCenter: parent.verticalCenter
	    		onClicked: {
					mediaContentSlipOff.start();
					pageStack.push(sendPicture)
				}		
			}	
			Button {
				id: video_button
				iconSource: theme.inverted ? "../common/images/video-white.png" : "../common/images/video.png"
	    		width: mediaContentSlip.width == 328 ? 44 : 0
				visible: width == 44 ? true : false
	    		height: width
	    		anchors.right: audio_button.left
	    		anchors.rightMargin: 10
	    		anchors.verticalCenter: parent.verticalCenter
	    		onClicked: {
					mediaContentSlipOff.start();
					pageStack.push(sendVideo)
				}
			}

			Button {
				id: audio_button
				iconSource: theme.inverted ? "../common/images/audio-white.png" : "../common/images/audio.png"
	    		width: mediaContentSlip.width == 328 ? 44 : 0
				visible: width == 44 ? true : false
	    		height: width
	    		anchors.right: location_button.left
	    		anchors.rightMargin: 10
	    		anchors.verticalCenter: parent.verticalCenter
				onClicked: {
					mediaContentSlipOff.start();
					pageStack.push(sendAudio)
				}
			}
i saw conversation.qml and conversation-new.qml, which one should i edit?