kjiu 0 Newbie Poster

Hello,

I have a problem :icon_confused: which is:

public void caseUpper()
	    {
	        QTextCursor cursor(textCursor());
	        String selTxt(cursor.selectedText());
	        if(selTxt.isEmpty())
	        {
	            return;
	        }
	        String txt = selTxt.toUpperCase();
	        insertPlainText(txt);
	    }

	    public void caseLower()
	    {
	        QTextCursor cursor(textCursor());
	        String selTxt(cursor.selectedText());
	        if(selTxt.isEmpty()) {
	            return;
	        }
	        String txt = selTxt.toLowerCase();
	        insertPlainText(txt);
	    }

I think the problem is that a I'm writing at c++ and java

Kjiu

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.